-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
[BUG]: boolean mode not working with prepared statements (bettersqlite) #2568
Comments
I just contributed to the bounty on this issue. Each contribution to this bounty has an expiry time and will be auto-refunded to the contributor if the issue is not solved before then. To make this a public bounty or have a reward split, the maintainer can reply to this comment. |
Working on this one, already found an issue |
Hey, I've already got a fork with it working. Would you like me to submit a PR? |
@AndriiSherman The fork is here if you want to use my implementation. https://github.com/veloii/drizzle-orm/tree/main. All good if you've already got it working! |
@veloii would be awesome if you can make a PR for it, if everything is good - I'll merge |
Should be fixed in |
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?No response
Describe the Bug
Boolean columns always get set to
1
when using a prepared statement. It's working fine when not using a prepared statement.Simple index.js to reproduce:
Expected behavior
Environment & setup
MacOS 14.5
better-sqlite3 11.0.0
SQLite 3.43.2
The text was updated successfully, but these errors were encountered: