-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D1 queries like select ?1 + ?2
broken after #480 PR
#526
Comments
Hey! 👋 Thanks opening this issue. It looks like a duplicate of #504, so I'm going to close this and keep tracking everything over there. 👍 |
mrbbot
added a commit
that referenced
this issue
Mar 22, 2023
`better-sqlite3` expects parameters of the form `?1, ?2, ...` to be bound as an object of the form `{ 1: params[0], 2: params[1], ...}`. In #480, we accidentally removed the code that handled this case. This PR adds it back, and lifts out some common functionality into a `#prepareAndBind()` function. :) Thanks @ruslantalpa for spotting the removed code. Closes #526 Closes cloudflare/workers-sdk#2811 Closes cloudflare/workers-sdk#2887
mrbbot
added a commit
that referenced
this issue
Mar 23, 2023
…544) `better-sqlite3` expects parameters of the form `?1, ?2, ...` to be bound as an object of the form `{ 1: params[0], 2: params[1], ...}`. In #480, we accidentally removed the code that handled this case. This PR adds it back, and lifts out some common functionality into a `#prepareAndBind()` function. :) Thanks @ruslantalpa for spotting the removed code. Closes #526 Closes cloudflare/workers-sdk#2811 Closes cloudflare/workers-sdk#2887
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I added these lines to one of the tests (to make sure it's not my code):
and the test fails
statements.ts
used to have this code which was deletedThe text was updated successfully, but these errors were encountered: