summaryrefslogtreecommitdiff
path: root/contrib/seg
diff options
context:
space:
mode:
authorTom Lane2002-09-22 20:08:51 +0000
committerTom Lane2002-09-22 20:08:51 +0000
commitfce573ae16b677479d94e6779ab194f0f5783c5c (patch)
tree510ff6153063bf0cf0f376dbc71ea2337211362d /contrib/seg
parent0b620e33db4940118ee8d61efe080b43a8089dd0 (diff)
I haven't seen any objections, so here is a patch. It removes "#define
YYERROR_VERBOSE" from contrib/cube and contrib/seg, and adjusts the expected output accordingly. Hopefully this will consistently pass across multiple bison versions. Joe Conway
Diffstat (limited to 'contrib/seg')
-rw-r--r--contrib/seg/expected/seg.out14
-rw-r--r--contrib/seg/segparse.y1
2 files changed, 7 insertions, 8 deletions
diff --git a/contrib/seg/expected/seg.out b/contrib/seg/expected/seg.out
index c8e63f76e9f..aa79cc799ee 100644
--- a/contrib/seg/expected/seg.out
+++ b/contrib/seg/expected/seg.out
@@ -395,25 +395,25 @@ SELECT '100(+-)1'::seg AS seg;
SELECT ''::seg AS seg;
ERROR: seg_in: can't parse an empty string
SELECT 'ABC'::seg AS seg;
-ERROR: parse error, expecting `FLOAT' or `RANGE' or `EXTENSION' at or near position 1, character ('A', \101), input: 'ABC'
+ERROR: parse error at or near position 1, character ('A', \101), input: 'ABC'
SELECT '1ABC'::seg AS seg;
-ERROR: expecting end of input at or near position 2, character ('A', \101), input: '1ABC'
+ERROR: parse error at or near position 2, character ('A', \101), input: '1ABC'
SELECT '1.'::seg AS seg;
-ERROR: expecting end of input at or near position 2, character ('.', \056), input: '1.'
+ERROR: parse error at or near position 2, character ('.', \056), input: '1.'
SELECT '1.....'::seg AS seg;
-ERROR: expecting end of input at or near position 6, character ('.', \056), input: '1.....'
+ERROR: parse error at or near position 6, character ('.', \056), input: '1.....'
SELECT '.1'::seg AS seg;
-ERROR: parse error, expecting `FLOAT' or `RANGE' or `EXTENSION' at or near position 2, character ('1', \061), input: '.1'
+ERROR: parse error at or near position 2, character ('1', \061), input: '.1'
SELECT '1..2.'::seg AS seg;
-ERROR: expecting end of input at or near position 5, character ('.', \056), input: '1..2.'
+ERROR: parse error at or near position 5, character ('.', \056), input: '1..2.'
SELECT '1 e7'::seg AS seg;
-ERROR: expecting end of input at or near position 3, character ('e', \145), input: '1 e7'
+ERROR: parse error at or near position 3, character ('e', \145), input: '1 e7'
SELECT '1e700'::seg AS seg;
ERROR: numeric value 1e700 unrepresentable
diff --git a/contrib/seg/segparse.y b/contrib/seg/segparse.y
index 3ffcbff4170..539c01b2539 100644
--- a/contrib/seg/segparse.y
+++ b/contrib/seg/segparse.y
@@ -1,5 +1,4 @@
%{
-#define YYERROR_VERBOSE
#define YYPARSE_PARAM result /* need this to pass a pointer (void *) to yyparse */
#include "postgres.h"