pgsql: Fix portability issue in tests from commit ce773f230.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix portability issue in tests from commit ce773f230.
Date: 2021-09-03 14:01:20
Message-ID: E1mM9ku-0006is-PS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix portability issue in tests from commit ce773f230.

Modern POSIX seems to require strtod() to accept "-NaN", but there's
nothing about NaN in SUSv2, and some of our oldest buildfarm members
don't like it. Let's try writing it as -'NaN' instead; that seems
to produce the same result, at least on Intel hardware.

Per buildfarm.

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1fab33c0b612c7d87b97842fe5eb07871ec2c222

Modified Files
--------------
src/test/regress/expected/hash_func.out | 4 ++--
src/test/regress/sql/hash_func.sql | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2021-09-03 17:42:28 pgsql: Set the volatility of the timestamptz version of date_bin() back
Previous Message Peter Eisentraut 2021-09-03 10:11:34 pgsql: Make pkg-config files cross-compile friendly