-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[SQLite] 64bit unsigned integer type support #499
Comments
What do you mean by SQLite has native support for them? You can store an arbitrary 8-byte integer, yes, but if you try and manipulate it or compare it in SQL it will be signed operations. |
SQLite has an unsigned 64-bit int typedef but no function exists to bind one as a parameter or retrieve one from a result row. The only use I could find in a cursory search is |
I am not quite sure how the database does it internally but if you create a table with an INTEGER column you can store and interact with 64bit integers 🤷
As far as I can tell (correct me if I'm wrong) there is currently no way to store numbers like |
You're using signed (not unsigned) 64-bit integers there which is what SQLite supports, and what we support via
If you're using @mehcode since it goes through in order and checks |
You're reading 0.3 @abonander , 0.4 ( master ) does auto select to @TilBlechschmidt So I poked SQLite. What is happening is SQLite ( because what are types really ) is seeing that your data is above 2^63 and shoving it into a
If you're trying to read integers from 2^32 to 2^63, this is fixed on master and SQLx outputs |
@mehcode sorry to resurrect an old issue - is it also the case that |
It seems that sqlx currently has no support for unsigned 64bit integer values (
u64
). Especially for contents like file sizes, timestamps etc. this would be very favourable as SQLite has native support for these.The text was updated successfully, but these errors were encountered: