Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handling explicit null bindings in SQLite #680

Merged
merged 1 commit into from
May 24, 2023
Merged

Conversation

geelen
Copy link
Contributor

@geelen geelen commented May 22, 2023

These were being implicitly coerced into a string before reaching the SqliteDatabase::Query::bind function.

I've also added tests to confirm that you can inject BLOBs by binding a Uint8Array

@geelen geelen requested a review from kentonv May 22, 2023 08:29
src/workerd/api/sql.c++ Outdated Show resolved Hide resolved
These were being implicitly coerced into a string before reaching the `SqliteDatabase::Query::bind` function.

I've also added tests to confirm that you can inject BLOBs by binding a `Uint8Array`

Update src/workerd/api/sql.c++

Co-authored-by: Kenton Varda <kenton@cloudflare.com>
@geelen geelen force-pushed the glen/sqlite-null-bindings branch from 56cf50d to 17c893f Compare May 24, 2023 00:09
@geelen geelen merged commit d504591 into main May 24, 2023
@kentonv kentonv deleted the glen/sqlite-null-bindings branch May 24, 2023 13:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants