Skip to content

Commit 342b83f

Browse files
committed
Revert "Add some regression test cases for denormalized float8 input."
This reverts commit 500cf66. As was more or less expected, a small minority of platforms won't accept denormalized input even with the recent changes. It doesn't seem especially helpful to test this if we're going to have to provide an alternate expected-file to allow failure.
1 parent 072ba77 commit 342b83f

File tree

5 files changed

+0
-81
lines changed

5 files changed

+0
-81
lines changed

src/test/regress/expected/float8-exp-three-digits-win32.out

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ SELECT '-10e-400'::float8;
2424
ERROR: "-10e-400" is out of range for type double precision
2525
LINE 1: SELECT '-10e-400'::float8;
2626
^
27-
-- test whether denormalized values are accepted
28-
SELECT '4.95e-324'::float8 < '1.49e-323'::float8;
29-
?column?
30-
----------
31-
t
32-
(1 row)
33-
34-
SELECT '4.95e-324'::float8 > '0'::float8;
35-
?column?
36-
----------
37-
t
38-
(1 row)
39-
40-
SELECT substr('-4.95e-324'::float8::text, 1, 4);
41-
substr
42-
--------
43-
-4.9
44-
(1 row)
45-
4627
-- bad input
4728
INSERT INTO FLOAT8_TBL(f1) VALUES ('');
4829
ERROR: invalid input syntax for type double precision: ""

src/test/regress/expected/float8-small-is-zero.out

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ SELECT '10e-400'::float8;
2424

2525
SELECT '-10e-400'::float8;
2626
float8
27-
-- test whether denormalized values are accepted
28-
SELECT '4.95e-324'::float8 < '1.49e-323'::float8;
29-
?column?
30-
----------
31-
t
32-
(1 row)
33-
34-
SELECT '4.95e-324'::float8 > '0'::float8;
35-
?column?
36-
----------
37-
t
38-
(1 row)
39-
40-
SELECT substr('-4.95e-324'::float8::text, 1, 4);
41-
substr
42-
--------
43-
-4.9
44-
(1 row)
45-
4627
--------
4728
-0
4829
(1 row)

src/test/regress/expected/float8-small-is-zero_1.out

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ SELECT '10e-400'::float8;
2424

2525
SELECT '-10e-400'::float8;
2626
float8
27-
-- test whether denormalized values are accepted
28-
SELECT '4.95e-324'::float8 < '1.49e-323'::float8;
29-
?column?
30-
----------
31-
t
32-
(1 row)
33-
34-
SELECT '4.95e-324'::float8 > '0'::float8;
35-
?column?
36-
----------
37-
t
38-
(1 row)
39-
40-
SELECT substr('-4.95e-324'::float8::text, 1, 4);
41-
substr
42-
--------
43-
-4.9
44-
(1 row)
45-
4627
--------
4728
0
4829
(1 row)

src/test/regress/expected/float8.out

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,6 @@ SELECT '-10e-400'::float8;
2424
ERROR: "-10e-400" is out of range for type double precision
2525
LINE 1: SELECT '-10e-400'::float8;
2626
^
27-
-- test whether denormalized values are accepted
28-
SELECT '4.95e-324'::float8 < '1.49e-323'::float8;
29-
?column?
30-
----------
31-
t
32-
(1 row)
33-
34-
SELECT '4.95e-324'::float8 > '0'::float8;
35-
?column?
36-
----------
37-
t
38-
(1 row)
39-
40-
SELECT substr('-4.95e-324'::float8::text, 1, 4);
41-
substr
42-
--------
43-
-4.9
44-
(1 row)
45-
4627
-- bad input
4728
INSERT INTO FLOAT8_TBL(f1) VALUES ('');
4829
ERROR: invalid input syntax for type double precision: ""

src/test/regress/sql/float8.sql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ SELECT '-10e400'::float8;
1616
SELECT '10e-400'::float8;
1717
SELECT '-10e-400'::float8;
1818

19-
-- test whether denormalized values are accepted
20-
SELECT '4.95e-324'::float8 < '1.49e-323'::float8;
21-
SELECT '4.95e-324'::float8 > '0'::float8;
22-
SELECT substr('-4.95e-324'::float8::text, 1, 4);
23-
2419
-- bad input
2520
INSERT INTO FLOAT8_TBL(f1) VALUES ('');
2621
INSERT INTO FLOAT8_TBL(f1) VALUES (' ');

0 commit comments

Comments
 (0)