diff --git a/cloudflare/d1/stmt.go b/cloudflare/d1/stmt.go index 418e20f..eec4262 100644 --- a/cloudflare/d1/stmt.go +++ b/cloudflare/d1/stmt.go @@ -57,7 +57,7 @@ func (s *stmt) Query([]driver.Value) (driver.Rows, error) { func (s *stmt) QueryContext(_ context.Context, args []driver.NamedValue) (driver.Rows, error) { argValues := make([]any, len(args)) for i, arg := range args { - argValues[i] = arg + argValues[i] = arg.Value } resultPromise := s.stmtObj.Call("bind", argValues...).Call("all") rowsObj, err := jsutil.AwaitPromise(resultPromise)