argument type fix
This commit is contained in:
4
lazy.go
4
lazy.go
@@ -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++ {
|
||||||
|
Reference in New Issue
Block a user