From 5c4c771dafefa7d0ee80a6bd6955b7a3940452a1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 5 May 2018 13:22:11 -0400 Subject: [PATCH] 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. --- .../regress/expected/float4-exp-three-digits.out | 12 ------------ src/test/regress/expected/float4.out | 12 ------------ src/test/regress/sql/float4.sql | 2 -- 3 files changed, 26 deletions(-) diff --git a/src/test/regress/expected/float4-exp-three-digits.out b/src/test/regress/expected/float4-exp-three-digits.out index ea6f77a671..f17f95697a 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 ab9b1acd49..fd46a4a1db 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 e6f5c7425d..3b363f9463 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; -- 2.40.0