sql: investigate using arbitrary precision constants #1795
Labels
A-sql-semantics
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Milestone
Currently,
SELECT 1 + 1.0
does not work because1
is parsed as an int and1.0
is parsed as a float and we disallow implicit conversions between int and float. An alternative is to borrow from the Go playbook and support arbitrary precision constants and allow implicit conversions of these constants and expressions involving them when the conversion does not lose precision. This would be quite a bit more involved than the current system, making this issue low priority. Can draw inspiration and ideas from https://godoc.org/golang.org/x/tools/go/exact.The text was updated successfully, but these errors were encountered: