-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Can't save blobs with db.update_rows(...) #41
Comments
The first issue is known and is a duplicate of #32 Your side note is actually a lot more interesting as this is unexpected behaviour.... will test ASAP and get back to you |
So I tested it somewhat and get the same error. I'll have to check, but I actually think you can't bind columns in this way. db.query_with_bindings("UPDATE users SET myblob=? WHERE uid = ?;", [PoolByteArray([1,2]), uid]) or if you still want the "myblob" value to be variable: db.query_with_bindings("UPDATE users SET " + "myblob" +"=? WHERE uid = ?;", [PoolByteArray([1,2]), uid]) I'll have to check if there's anything in the documentation about this... |
After a little bit of searching I found this: So it's a SQLite restriction that applies here and not an issue of the plugin itself! 😅 |
Thank you so much, I wasn't aware of this at all. Using |
Can I close this issue then? Since this is a duplicate from #32 and the secondary issue is due to an SQLite restriction and doesn't directly relate to the Godot-SQLite plugin itself? |
Yes you can close it, thank you :)
Maybe add a hint to the docu about the secondary issue, for the next person
stumbling over it 👍
Am 18. März 2021 23:43:09 schrieb Piet Bronders ***@***.***>:
…
Can I close this issue then? Since this is a duplicate from #32 and the
secondary issue is due to an SQLite restriction and doesn't directly relate
to the Godot-SQLite plugin itself?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
will do! |
Using db.update_rows(...), saving blobs does not work.
Output is:
But I think it should be something like:
I can save blobs with db.insert_row(...) though. But updating blobs doesn't work.
As a side note, I also tried
But in the log it says:
So there seems to be another issue with
query_with_bindings
The text was updated successfully, but these errors were encountered: