Skip to content

Commit 6ddca9d

Browse files
committed
Fix bug NewQueryWithArray
1 parent 478255a commit 6ddca9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

query/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewQueryWithArray[T any, K any, F any](db *sql.DB, table string, buildQuery
2323
driver.Valuer
2424
sql.Scanner
2525
}, opts ...func(*T)) (*Query[T, K, F], error) {
26-
return NewQueryWithArrayAndParam[T, K, F](db, table, buildQuery, nil, nil, opts...)
26+
return NewQueryWithArrayAndParam[T, K, F](db, table, buildQuery, toArray, nil, opts...)
2727
}
2828
func NewQueryWithArrayAndParam[T any, K any, F any](db *sql.DB, table string, buildQuery func(F) (string, []interface{}), toArray func(interface{}) interface {
2929
driver.Valuer

0 commit comments

Comments
 (0)