-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Cannot insert empty buffer (it becomes NULL) #651
Closed
Prinzhorn opened this issue
Jun 30, 2021
· 3 comments
· Fixed by n1ru4l/character-overlay#324, paazmaya/tozan#262, auctumnus/hanas#243 or paazmaya/image-duplicate-remover#161 · May be fixed by amilajack/database_exporter#14
Closed
Cannot insert empty buffer (it becomes NULL) #651
Prinzhorn opened this issue
Jun 30, 2021
· 3 comments
· Fixed by n1ru4l/character-overlay#324, paazmaya/tozan#262, auctumnus/hanas#243 or paazmaya/image-duplicate-remover#161 · May be fixed by amilajack/database_exporter#14
Labels
Comments
Prinzhorn
added a commit
to Prinzhorn/better-sqlite3
that referenced
this issue
Jul 2, 2021
For now I'm working around it by binding an empty string when the buffer is empty stmt.run({
content: content.length === 0 ? '' : content,
}); |
It appears this bug only occurs in newer version of node, because they changed how their C++ API works. Oh well. This is fixed in v7.4.3. |
Thanks! |
1 task
This was referenced Oct 18, 2021
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to #11
My NOT NULL constraint is failing for empty BLOB.
Related
ericsink/SQLitePCL.raw@e324598
dotnet/efcore#17494 (comment)
https://github.com/aspnet/Microsoft.Data.Sqlite/pull/208/files
https://sqlite.org/forum/forumpost/5bae43cbd77fc654?t=h
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg35366.html
Also what is it with SQLite forums and "The author has deleted this message."....
The text was updated successfully, but these errors were encountered: