pgwire,sql: extra_float_digits is not propagated properly from client settings #30698
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
A-sql-pgwire
pgwire protocol issues.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-erroneous-edge-case
Database produces or stores erroneous data without visible error/warning, in rare edge cases.
When a pgwire client sets up the connection they can provide initial client parameters like application_name.
Most clients, including lib/pq and psql, expect to be able to specify extra_float_digits because they consider the default (0) to be an unsuitable default.
Currently CockroachDB drops this configuration on the floor and defaults to 0 always. This is incorrect on its face, and can also cause clients to start reporting invalid/unexpected float values to clients.
The text was updated successfully, but these errors were encountered: