summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-05-05 13:22:11 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-05-05 13:22:11 -0400
commit5c4c771dafefa7d0ee80a6bd6955b7a3940452a1 (patch)
tree08df7b07f819fc3c3ef7f6ef7b05b445c0d99474
parentcb3e9e40bc993128cd51795ea60ff7bed78cebb5 (diff)
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.
-rw-r--r--src/test/regress/expected/float4-exp-three-digits.out12
-rw-r--r--src/test/regress/expected/float4.out12
-rw-r--r--src/test/regress/sql/float4.sql2
3 files changed, 0 insertions, 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 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;