Open aguspdana opened 3 months ago
I'm not sure how this is a SQLx bug, honestly. You're using an integer literal, not a bind parameter, correct? SQLx sends the query string verbatim and doesn't set any sql_mode
flags that would change the evaluation here. It sounds like maybe you've got strict mode enabled in your application.
Bug Description
Inserting unsigned integer larger than
i64::MAX
into aBIGINT UNSIGNED
column returns "Out of range value" error.I'm using PlanetScale DB. Typing the query directly in the console worked.
Minimal Reproduction
Info
rustc --version
: 1.74.0