From 6bbb452b0374aadc4d5d7391ae63c59f966595ab Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 30 Sep 2025 11:26:54 -0400 Subject: [PATCH] argument type fix --- lazy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++ {