summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Lane1999-01-24 00:12:59 +0000
committerTom Lane1999-01-24 00:12:59 +0000
commit157349e3afdb5282cc177e53f4c435ab343b113f (patch)
treee6063c9ee448fe063224d09dac40aa14f4a1d061 /src/test
parent598a4e15dd469e41d69d6588bac1c45bb893ecee (diff)
Improper addition of NaN/Infinity recognition to float8in()
was causing it not to detect out-of-range float values, as evidenced by failure of float8 regression test. I corrected that logic and also modified expected float8 results to account for new error message generated for out-of-range inputs.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/float8.out8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/regress/expected/float8.out b/src/test/regress/expected/float8.out
index 6434d8eb261..90f7bc37c8a 100644
--- a/src/test/regress/expected/float8.out
+++ b/src/test/regress/expected/float8.out
@@ -209,13 +209,13 @@ five|f1
(5 rows)
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e400');
-ERROR: Bad float8 input format '10e400'
+ERROR: Input '10e400' is out of range for float8
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400');
-ERROR: Bad float8 input format '-10e400'
+ERROR: Input '-10e400' is out of range for float8
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e-400');
-ERROR: Bad float8 input format '10e-400'
+ERROR: Input '10e-400' is out of range for float8
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e-400');
-ERROR: Bad float8 input format '-10e-400'
+ERROR: Input '-10e-400' is out of range for float8
QUERY: DELETE FROM FLOAT8_TBL;
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('0.0');
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-34.84');