-
Notifications
You must be signed in to change notification settings - Fork 213
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
Does the expression generator really support uint64? #317
Comments
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Dec 19, 2021
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Dec 19, 2021
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Dec 19, 2021
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Dec 20, 2021
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Dec 20, 2021
CCS-CloudServices
added a commit
to CCS-CloudServices/goqu
that referenced
this issue
Dec 20, 2021
uint64 cast to int64 caused lost of data doug-martin#317
XIELongDragon
added a commit
to XIELongDragon/goqu
that referenced
this issue
Feb 13, 2022
uint64 cast to int64 caused lost of data doug-martin#317
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This lib can build Insert queries from a struct which is a very nice and handy feature. I might get something wrong here, but this seems not to work for uint64 fields, as they are casted at some point to int64 values which lets some uint64 values overflow. See the following example:
This will create the following query:
INSERT INTO tableName (uint_64) VALUES (-7276920516249493261)
What I would expect is this query:
INSERT INTO tableName (uint_64) VALUES (11169823557460058355)
Am I using this lib in a wrong way or is this an error inside the lib?
The text was updated successfully, but these errors were encountered: