aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-09-24 23:01:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-09-24 23:01:04 -0400
commit7ddadacec4ddea5d0b2e7452ec7adccd015c3bb6 (patch)
treeb20eb7f1f4adfcc5d079fdc12cf0873f7f2be316 /src/backend/utils/adt
parentff090bbb76b24d8070a8c1a5f434f912d908ec19 (diff)
downloadpostgresql-7ddadacec4ddea5d0b2e7452ec7adccd015c3bb6.tar.gz
postgresql-7ddadacec4ddea5d0b2e7452ec7adccd015c3bb6.zip
Fix psql's code for locale-aware formatting of numeric output.
This code did the wrong thing entirely for numbers with an exponent but no decimal point (e.g., '1e6'), as reported by Jeff Janes in bug #13636. More generally, it made lots of unverified assumptions about what the input string could possibly look like. Rearrange so that it only fools with leading digits that it's directly verified are there, and an immediately adjacent decimal point. While at it, get rid of some useless inefficiencies, like converting the grouping count string to integer over and over (and over). This has been broken for a long time, so back-patch to all supported branches.
Diffstat (limited to 'src/backend/utils/adt')
0 files changed, 0 insertions, 0 deletions