argument type fix

This commit is contained in:
2025-09-30 11:26:54 -04:00
parent 21b1291dbc
commit 6bbb452b03

View File

@@ -41,7 +41,7 @@ type Config struct {
type StructMock struct { type StructMock struct {
Query string Query string
Args []any Args []driver.Value
MockStructs reflect.Value MockStructs reflect.Value
Result driver.Result Result driver.Result
} }
@@ -130,7 +130,7 @@ func RandomStruct(c Config) (*StructMock, error) {
//create slice of structs //create slice of structs
ft := reflect.SliceOf(retType) ft := reflect.SliceOf(retType)
filled := reflect.MakeSlice(ft, 0, c.RowCount).Elem() 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 x := 0; x < c.RowCount; x++ {
for y := 0; y < maxFieldCount; y++ { for y := 0; y < maxFieldCount; y++ {