Skip to content

Commit

Permalink
pass driver.NamedValue.Value as JS value instead of NamedValue itself
Browse files Browse the repository at this point in the history
  • Loading branch information
minoritea committed Jan 10, 2024
1 parent 1ccb909 commit a8b9ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/d1/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8b9ac4

Please sign in to comment.