Skip to content

Commit 5c4c771

Browse files
committed
Revert "Test conversion of NaN between float4 and float8."
This reverts commit 55e0e45. 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.
1 parent cb3e9e4 commit 5c4c771

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/test/regress/expected/float4-exp-three-digits.out

-12
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ SELECT 'nan'::numeric::float4;
125125
NaN
126126
(1 row)
127127

128-
SELECT 'nan'::float8::float4;
129-
float4
130-
--------
131-
NaN
132-
(1 row)
133-
134-
SELECT 'nan'::float4::float8;
135-
float8
136-
--------
137-
NaN
138-
(1 row)
139-
140128
SELECT '' AS five, * FROM FLOAT4_TBL;
141129
five | f1
142130
------+--------------

src/test/regress/expected/float4.out

-12
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ SELECT 'nan'::numeric::float4;
125125
NaN
126126
(1 row)
127127

128-
SELECT 'nan'::float8::float4;
129-
float4
130-
--------
131-
NaN
132-
(1 row)
133-
134-
SELECT 'nan'::float4::float8;
135-
float8
136-
--------
137-
NaN
138-
(1 row)
139-
140128
SELECT '' AS five, * FROM FLOAT4_TBL;
141129
five | f1
142130
------+-------------

src/test/regress/sql/float4.sql

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ SELECT 'Infinity'::float4 + 100.0;
4141
SELECT 'Infinity'::float4 / 'Infinity'::float4;
4242
SELECT 'nan'::float4 / 'nan'::float4;
4343
SELECT 'nan'::numeric::float4;
44-
SELECT 'nan'::float8::float4;
45-
SELECT 'nan'::float4::float8;
4644

4745
SELECT '' AS five, * FROM FLOAT4_TBL;
4846

0 commit comments

Comments
 (0)