summaryrefslogtreecommitdiff
path: root/contrib/seg
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-09-01 20:42:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-09-01 20:42:46 +0000
commitb153c0920960a6059b67969469166fb29c0105d7 (patch)
tree4e7100ecdca88746c369ae2a6a43468925f3194d /contrib/seg
parent9ac4299163247645c6e391f5f65735c6cb78ccb9 (diff)
downloadpostgresql-b153c0920960a6059b67969469166fb29c0105d7.tar.gz
Add a bunch of new error location reports to parse-analysis error messages.
There are still some weak spots around JOIN USING and relation alias lists, but most errors reported within backend/parser/ now have locations.
Diffstat (limited to 'contrib/seg')
-rw-r--r--contrib/seg/expected/seg.out18
-rw-r--r--contrib/seg/expected/seg_1.out18
2 files changed, 36 insertions, 0 deletions
diff --git a/contrib/seg/expected/seg.out b/contrib/seg/expected/seg.out
index 69bcfa1441..bd099a222c 100644
--- a/contrib/seg/expected/seg.out
+++ b/contrib/seg/expected/seg.out
@@ -394,30 +394,48 @@ SELECT '100(+-)1'::seg AS seg;
-- invalid input
SELECT ''::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT ''::seg AS seg;
+ ^
DETAIL: syntax error at end of input
SELECT 'ABC'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT 'ABC'::seg AS seg;
+ ^
DETAIL: syntax error at or near "A"
SELECT '1ABC'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1ABC'::seg AS seg;
+ ^
DETAIL: syntax error at or near "A"
SELECT '1.'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1.'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1.....'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1.....'::seg AS seg;
+ ^
DETAIL: syntax error at or near ".."
SELECT '.1'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '.1'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1..2.'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1..2.'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1 e7'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1 e7'::seg AS seg;
+ ^
DETAIL: syntax error at or near "e"
SELECT '1e700'::seg AS seg;
ERROR: "1e700" is out of range for type real
+LINE 1: SELECT '1e700'::seg AS seg;
+ ^
--
-- testing the operators
--
diff --git a/contrib/seg/expected/seg_1.out b/contrib/seg/expected/seg_1.out
index aef3df8aea..c92cd83510 100644
--- a/contrib/seg/expected/seg_1.out
+++ b/contrib/seg/expected/seg_1.out
@@ -394,30 +394,48 @@ SELECT '100(+-)1'::seg AS seg;
-- invalid input
SELECT ''::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT ''::seg AS seg;
+ ^
DETAIL: syntax error at end of input
SELECT 'ABC'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT 'ABC'::seg AS seg;
+ ^
DETAIL: syntax error at or near "A"
SELECT '1ABC'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1ABC'::seg AS seg;
+ ^
DETAIL: syntax error at or near "A"
SELECT '1.'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1.'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1.....'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1.....'::seg AS seg;
+ ^
DETAIL: syntax error at or near ".."
SELECT '.1'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '.1'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1..2.'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1..2.'::seg AS seg;
+ ^
DETAIL: syntax error at or near "."
SELECT '1 e7'::seg AS seg;
ERROR: bad seg representation
+LINE 1: SELECT '1 e7'::seg AS seg;
+ ^
DETAIL: syntax error at or near "e"
SELECT '1e700'::seg AS seg;
ERROR: "1e700" is out of range for type real
+LINE 1: SELECT '1e700'::seg AS seg;
+ ^
--
-- testing the operators
--