-
Notifications
You must be signed in to change notification settings - Fork 75
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
dbQuoteLiteral() for numerics has insufficient precision in some cases #404
Labels
Comments
I'll give it a try, at least one resource suggests that exponential notation is okay: https://sql-academy.org/en/guide/literals#numeric-literals. And another resource even suggests that this is the way to indicate floating-point literals. |
I had to revert this because reverse dependencies were failing. Need a more robust way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2022-12-09 with reprex v2.0.2
We could use
sprintf("%.17e")
as in the reprex to always convert to exponential notation with enough decimal numbers.@hannes: Are you aware of databases that would complain about numbers passed in exponential notation in situations when they wouldn't complain about decimal numbers?
The text was updated successfully, but these errors were encountered: