diff --git a/lazy.go b/lazy.go index f7e65e0..934d52d 100644 --- a/lazy.go +++ b/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++ {