-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query comparisons for big decimals fail on Sqlite #11036
Comments
Probably type affinity thing mentioned here:
We store data as TEXT but we generate literal of REAL. SELECT COUNT(*)
FROM "Riders" AS "e"
WHERE "e"."Mount" = 3333222211110000.0 So for smaller no equality works fine. For bigger no. type affinity fails and equality fails (probably due to being different types). If we compare with TEXT literal then it works. |
We can make this work by using TEXT literals for |
Related to #10534 |
Digging into this, I think we should switch to TEXT literals. I can't foresee any regressions. 🤞 The operators appear do the right(?) thing. |
With this model:
This works:
But making the value bigger fails:
The text was updated successfully, but these errors were encountered: