summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Lane2009-04-08 22:08:40 +0000
committerTom Lane2009-04-08 22:08:40 +0000
commite0daf7fc3cc6489de2120f882ac2942f0c18ed82 (patch)
tree856422c0254565e4168e329cb2200e6eeb2624a8 /src/test
parent77d67a4a3be1a2114ff9869fc3552a39fa7c5e68 (diff)
Allow leading and trailing spaces around NaN in numeric_in.
Sam Mason, rewritten a bit by Tom.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/expected/numeric.out10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/test/regress/expected/numeric.out b/src/test/regress/expected/numeric.out
index c2fe7070b50..a3b631aabe0 100644
--- a/src/test/regress/expected/numeric.out
+++ b/src/test/regress/expected/numeric.out
@@ -1230,13 +1230,7 @@ INSERT INTO num_input_test(n1) VALUES (' -93853');
INSERT INTO num_input_test(n1) VALUES ('555.50');
INSERT INTO num_input_test(n1) VALUES ('-555.50');
INSERT INTO num_input_test(n1) VALUES ('NaN ');
-ERROR: invalid input syntax for type numeric: "NaN "
-LINE 1: INSERT INTO num_input_test(n1) VALUES ('NaN ');
- ^
INSERT INTO num_input_test(n1) VALUES (' nan');
-ERROR: invalid input syntax for type numeric: " nan"
-LINE 1: INSERT INTO num_input_test(n1) VALUES (' nan');
- ^
-- bad inputs
INSERT INTO num_input_test(n1) VALUES (' ');
ERROR: invalid input syntax for type numeric: " "
@@ -1278,7 +1272,9 @@ SELECT * FROM num_input_test;
-93853
555.50
-555.50
-(5 rows)
+ NaN
+ NaN
+(7 rows)
--
-- Test some corner cases for division