Skip to content
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 driver would cause panic when QueryContext is called with parameters #86

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

minoritea
Copy link
Contributor

What

I fixed an issue where the D1 driver would cause a panic when QueryContext is called with parameters.
The problem was that QueryContext was attempting to bind driver.NamedValue as JavaScript values, which was bound to fail.
I have updated it to bind driver.NamedValue.Value in the same way that ExecContext does.

Motivation

Thank you for providing such a wonderful framework.
I hope this fix will be helpful to you.

Copy link
Owner

@syumai syumai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@minoritea Thanks!

@syumai syumai merged commit a64f77a into syumai:main Jan 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants