argument type fix
This commit is contained in:
4
lazy.go
4
lazy.go
@@ -41,7 +41,7 @@ type Config struct {
|
||||
|
||||
type StructMock struct {
|
||||
Query string
|
||||
Args []any
|
||||
Args []driver.Value
|
||||
MockStructs reflect.Value
|
||||
Result driver.Result
|
||||
}
|
||||
@@ -130,7 +130,7 @@ func RandomStruct(c Config) (*StructMock, error) {
|
||||
//create slice of structs
|
||||
ft := reflect.SliceOf(retType)
|
||||
filled := reflect.MakeSlice(ft, 0, c.RowCount).Elem()
|
||||
args := make([]any, 0, maxFieldCount)
|
||||
args := make([]driver.Value, 0, maxFieldCount)
|
||||
|
||||
for x := 0; x < c.RowCount; x++ {
|
||||
for y := 0; y < maxFieldCount; y++ {
|
||||
|
Reference in New Issue
Block a user