Skip to content

Commit a59084f

Browse files
committed
Update 7.2 regression tests to match what you get when using a modern
version of Bison.
1 parent 9f7cf9c commit a59084f

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

src/test/regress/expected/errors.out

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ select 1
1919
select
2020
-- no such relation
2121
select * from nonesuch;
22-
ERROR: parser: parse error at or near "select"
22+
ERROR: parser: syntax error at or near "select"
2323
-- bad name in target list
2424
select nonesuch from pg_database;
2525
ERROR: Attribute 'nonesuch' not found
@@ -31,7 +31,7 @@ select * from pg_database where pg_database.datname = nonesuch;
3131
ERROR: Attribute 'nonesuch' not found
3232
-- bad select distinct on syntax, distinct attribute missing
3333
select distinct on (foobar) from pg_database;
34-
ERROR: parser: parse error at or near "from"
34+
ERROR: parser: syntax error at or near "from"
3535
-- bad select distinct on syntax, distinct attribute not in target list
3636
select distinct on (foobar) * from pg_database;
3737
ERROR: Attribute 'foobar' not found
@@ -40,7 +40,7 @@ ERROR: Attribute 'foobar' not found
4040

4141
-- missing relation name (this had better not wildcard!)
4242
delete from;
43-
ERROR: parser: parse error at or near ";"
43+
ERROR: parser: syntax error at or near ";"
4444
-- no such relation
4545
delete from nonesuch;
4646
ERROR: Relation "nonesuch" does not exist
@@ -49,7 +49,7 @@ ERROR: Relation "nonesuch" does not exist
4949

5050
-- missing relation name (this had better not wildcard!)
5151
drop table;
52-
ERROR: parser: parse error at or near ";"
52+
ERROR: parser: syntax error at or near ";"
5353
-- no such relation
5454
drop table nonesuch;
5555
ERROR: table "nonesuch" does not exist
@@ -59,7 +59,7 @@ ERROR: table "nonesuch" does not exist
5959
-- relation renaming
6060
-- missing relation name
6161
alter table rename;
62-
ERROR: parser: parse error at or near ";"
62+
ERROR: parser: syntax error at or near ";"
6363
-- no such relation
6464
alter table nonesuch rename to newnonesuch;
6565
ERROR: Relation "nonesuch" does not exist
@@ -116,10 +116,10 @@ ERROR: Define: "basetype" unspecified
116116

117117
-- missing index name
118118
drop index;
119-
ERROR: parser: parse error at or near ";"
119+
ERROR: parser: syntax error at or near ";"
120120
-- bad index name
121121
drop index 314159;
122-
ERROR: parser: parse error at or near "314159"
122+
ERROR: parser: syntax error at or near "314159"
123123
-- no such index
124124
drop index nonesuch;
125125
ERROR: index "nonesuch" does not exist
@@ -128,13 +128,13 @@ ERROR: index "nonesuch" does not exist
128128

129129
-- missing aggregate name
130130
drop aggregate;
131-
ERROR: parser: parse error at or near ";"
131+
ERROR: parser: syntax error at or near ";"
132132
-- missing aggregate type
133133
drop aggregate newcnt1;
134-
ERROR: parser: parse error at or near ";"
134+
ERROR: parser: syntax error at or near ";"
135135
-- bad aggregate name
136136
drop aggregate 314159 (int);
137-
ERROR: parser: parse error at or near "314159"
137+
ERROR: parser: syntax error at or near "314159"
138138
-- bad aggregate type
139139
drop aggregate newcnt (nonesuch);
140140
ERROR: RemoveAggregate: type 'nonesuch' does not exist
@@ -149,10 +149,10 @@ ERROR: RemoveAggregate: aggregate 'newcnt' for type real does not exist
149149

150150
-- missing function name
151151
drop function ();
152-
ERROR: parser: parse error at or near "("
152+
ERROR: parser: syntax error at or near "("
153153
-- bad function name
154154
drop function 314159();
155-
ERROR: parser: parse error at or near "314159"
155+
ERROR: parser: syntax error at or near "314159"
156156
-- no such function
157157
drop function nonesuch();
158158
ERROR: RemoveFunction: function 'nonesuch()' does not exist
@@ -161,10 +161,10 @@ ERROR: RemoveFunction: function 'nonesuch()' does not exist
161161

162162
-- missing type name
163163
drop type;
164-
ERROR: parser: parse error at or near ";"
164+
ERROR: parser: syntax error at or near ";"
165165
-- bad type name
166166
drop type 314159;
167-
ERROR: parser: parse error at or near "314159"
167+
ERROR: parser: syntax error at or near "314159"
168168
-- no such type
169169
drop type nonesuch;
170170
ERROR: RemoveType: type 'nonesuch' does not exist
@@ -173,22 +173,22 @@ ERROR: RemoveType: type 'nonesuch' does not exist
173173

174174
-- missing everything
175175
drop operator;
176-
ERROR: parser: parse error at or near ";"
176+
ERROR: parser: syntax error at or near ";"
177177
-- bad operator name
178178
drop operator equals;
179-
ERROR: parser: parse error at or near "equals"
179+
ERROR: parser: syntax error at or near "equals"
180180
-- missing type list
181181
drop operator ===;
182-
ERROR: parser: parse error at or near ";"
182+
ERROR: parser: syntax error at or near ";"
183183
-- missing parentheses
184184
drop operator int4, int4;
185-
ERROR: parser: parse error at or near "int4"
185+
ERROR: parser: syntax error at or near "int4"
186186
-- missing operator name
187187
drop operator (int4, int4);
188-
ERROR: parser: parse error at or near "("
188+
ERROR: parser: syntax error at or near "("
189189
-- missing type list contents
190190
drop operator === ();
191-
ERROR: parser: parse error at or near ")"
191+
ERROR: parser: syntax error at or near ")"
192192
-- no such operator
193193
drop operator === (int4);
194194
ERROR: parser: argument type missing (use NONE for unary operators)
@@ -200,7 +200,7 @@ drop operator = (nonesuch);
200200
ERROR: parser: argument type missing (use NONE for unary operators)
201201
-- no such type1
202202
drop operator = ( , int4);
203-
ERROR: parser: parse error at or near ","
203+
ERROR: parser: syntax error at or near ","
204204
-- no such type1
205205
drop operator = (nonesuch, int4);
206206
ERROR: RemoveOperator: type 'nonesuch' does not exist
@@ -209,25 +209,25 @@ drop operator = (int4, nonesuch);
209209
ERROR: RemoveOperator: type 'nonesuch' does not exist
210210
-- no such type2
211211
drop operator = (int4, );
212-
ERROR: parser: parse error at or near ")"
212+
ERROR: parser: syntax error at or near ")"
213213
--
214214
-- DROP RULE
215215

216216
-- missing rule name
217217
drop rule;
218-
ERROR: parser: parse error at or near ";"
218+
ERROR: parser: syntax error at or near ";"
219219
-- bad rule name
220220
drop rule 314159;
221-
ERROR: parser: parse error at or near "314159"
221+
ERROR: parser: syntax error at or near "314159"
222222
-- no such rule
223223
drop rule nonesuch;
224224
ERROR: Rule or view "nonesuch" not found
225225
-- bad keyword
226226
drop tuple rule nonesuch;
227-
ERROR: parser: parse error at or near "tuple"
227+
ERROR: parser: syntax error at or near "tuple"
228228
-- no such rule
229229
drop instance rule nonesuch;
230-
ERROR: parser: parse error at or near "instance"
230+
ERROR: parser: syntax error at or near "instance"
231231
-- no such rule
232232
drop rewrite rule nonesuch;
233-
ERROR: parser: parse error at or near "rewrite"
233+
ERROR: parser: syntax error at or near "rewrite"

src/test/regress/expected/strings.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SELECT 'first line'
1717
' - next line' /* this comment is not allowed here */
1818
' - third line'
1919
AS "Illegal comment within continuation";
20-
ERROR: parser: parse error at or near "'"
20+
ERROR: parser: syntax error at or near "'"
2121
--
2222
-- test conversions between various string types
2323
--

src/test/regress/output/constraints.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ SELECT '' AS four, * FROM DEFAULTEXPR_TBL;
4545
-- syntax errors
4646
-- test for extraneous comma
4747
CREATE TABLE error_tbl (i int DEFAULT (100, ));
48-
ERROR: parser: parse error at or near ","
48+
ERROR: parser: syntax error at or near ","
4949
-- this will fail because gram.y uses b_expr not a_expr for defaults,
5050
-- to avoid a shift/reduce conflict that arises from NOT NULL being
5151
-- part of the column definition syntax:
5252
CREATE TABLE error_tbl (b1 bool DEFAULT 1 IN (1, 2));
53-
ERROR: parser: parse error at or near "IN"
53+
ERROR: parser: syntax error at or near "IN"
5454
-- this should work, however:
5555
CREATE TABLE error_tbl (b1 bool DEFAULT (1 IN (1, 2)));
5656
DROP TABLE error_tbl;

0 commit comments

Comments
 (0)