pgsql: Make float exponent output on Windows look the same as elsewhere

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make float exponent output on Windows look the same as elsewhere
Date: 2018-10-12 15:15:11
Message-ID: E1gAz9j-0001tE-PR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make float exponent output on Windows look the same as elsewhere.

Windows, alone among our supported platforms, likes to emit three-digit
exponent fields even when two digits would do. Adjust such results to
look like the way everyone else does it. Eliminate a bunch of variant
expected-output files that were needed only because of this quirk.

Discussion: https://postgr.es/m/2934.1539122454@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f1885386f6246ac7b6f8d3f0aef247988f48ee7a

Modified Files
--------------
contrib/cube/expected/cube_sci_1.out | 106 -
contrib/seg/expected/seg_1.out | 1266 -----
.../compat_informix-dec_test-MinGW32.stdout | 1293 ------
.../expected/pgtypeslib-num_test-MinGW32.stdout | 6 -
.../expected/pgtypeslib-num_test2-MinGW32.stdout | 1117 -----
src/interfaces/ecpg/test/resultmap | 12 -
src/port/snprintf.c | 27 +
.../regress/expected/float4-exp-three-digits.out | 259 --
.../expected/float8-exp-three-digits-win32.out | 586 ---
src/test/regress/expected/geometry_1.out | 4890 --------------------
.../regress/expected/int8-exp-three-digits.out | 888 ----
src/test/regress/resultmap | 12 -
12 files changed, 27 insertions(+), 10435 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-10-12 15:38:45 pgsql: Correct attach/detach logic for FKs in partitions
Previous Message Michael Banck 2018-10-12 10:14:48 Re: pgsql: Add TAP tests for pg_verify_checksums