From: Tom Lane Date: Sat, 5 May 2018 17:22:11 +0000 (-0400) Subject: Revert "Test conversion of NaN between float4 and float8." X-Git-Tag: REL_11_BETA1~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c4c771dafefa7d0ee80a6bd6955b7a3940452a1;p=thirdparty%2Fpostgresql.git Revert "Test conversion of NaN between float4 and float8." This reverts commit 55e0e458170c76c1a0074cd550a13ec47e38a3fa. It's served its purpose of demonstrating what was wrong on buildfarm member opossum. We could consider putting some kind of single-purpose hack into ftod() to make the test pass there; but I don't think it's worth the trouble, since there are surely many other places whether this platform bug could manifest. --- diff --git a/src/test/regress/expected/float4-exp-three-digits.out b/src/test/regress/expected/float4-exp-three-digits.out index ea6f77a671a..f17f95697a2 100644 --- a/src/test/regress/expected/float4-exp-three-digits.out +++ b/src/test/regress/expected/float4-exp-three-digits.out @@ -125,18 +125,6 @@ SELECT 'nan'::numeric::float4; NaN (1 row) -SELECT 'nan'::float8::float4; - float4 --------- - NaN -(1 row) - -SELECT 'nan'::float4::float8; - float8 --------- - NaN -(1 row) - SELECT '' AS five, * FROM FLOAT4_TBL; five | f1 ------+-------------- diff --git a/src/test/regress/expected/float4.out b/src/test/regress/expected/float4.out index ab9b1acd493..fd46a4a1db7 100644 --- a/src/test/regress/expected/float4.out +++ b/src/test/regress/expected/float4.out @@ -125,18 +125,6 @@ SELECT 'nan'::numeric::float4; NaN (1 row) -SELECT 'nan'::float8::float4; - float4 --------- - NaN -(1 row) - -SELECT 'nan'::float4::float8; - float8 --------- - NaN -(1 row) - SELECT '' AS five, * FROM FLOAT4_TBL; five | f1 ------+------------- diff --git a/src/test/regress/sql/float4.sql b/src/test/regress/sql/float4.sql index e6f5c7425da..3b363f94635 100644 --- a/src/test/regress/sql/float4.sql +++ b/src/test/regress/sql/float4.sql @@ -41,8 +41,6 @@ SELECT 'Infinity'::float4 + 100.0; SELECT 'Infinity'::float4 / 'Infinity'::float4; SELECT 'nan'::float4 / 'nan'::float4; SELECT 'nan'::numeric::float4; -SELECT 'nan'::float8::float4; -SELECT 'nan'::float4::float8; SELECT '' AS five, * FROM FLOAT4_TBL;