@@ -22,13 +22,13 @@ select 1;
2222
2323-- missing relation name
2424select;
25- ERROR: parser: parse error at or near ";" at character 7
25+ ERROR: syntax error at or near ";" at character 7
2626-- no such relation
2727select * from nonesuch;
2828ERROR: Relation "nonesuch" does not exist
2929-- missing target list
3030select from pg_database;
31- ERROR: parser: parse error at or near "from" at character 8
31+ ERROR: syntax error at or near "from" at character 8
3232-- bad name in target list
3333select nonesuch from pg_database;
3434ERROR: Attribute "nonesuch" not found
@@ -40,7 +40,7 @@ select * from pg_database where pg_database.datname = nonesuch;
4040ERROR: Attribute "nonesuch" not found
4141-- bad select distinct on syntax, distinct attribute missing
4242select distinct on (foobar) from pg_database;
43- ERROR: parser: parse error at or near "from" at character 29
43+ ERROR: syntax error at or near "from" at character 29
4444-- bad select distinct on syntax, distinct attribute not in target list
4545select distinct on (foobar) * from pg_database;
4646ERROR: Attribute "foobar" not found
@@ -49,7 +49,7 @@ ERROR: Attribute "foobar" not found
4949
5050-- missing relation name (this had better not wildcard!)
5151delete from;
52- ERROR: parser: parse error at or near ";" at character 12
52+ ERROR: syntax error at or near ";" at character 12
5353-- no such relation
5454delete from nonesuch;
5555ERROR: Relation "nonesuch" does not exist
@@ -58,7 +58,7 @@ ERROR: Relation "nonesuch" does not exist
5858
5959-- missing relation name (this had better not wildcard!)
6060drop table;
61- ERROR: parser: parse error at or near ";" at character 11
61+ ERROR: syntax error at or near ";" at character 11
6262-- no such relation
6363drop table nonesuch;
6464ERROR: table "nonesuch" does not exist
@@ -68,7 +68,7 @@ ERROR: table "nonesuch" does not exist
6868-- relation renaming
6969-- missing relation name
7070alter table rename;
71- ERROR: parser: parse error at or near ";" at character 19
71+ ERROR: syntax error at or near ";" at character 19
7272-- no such relation
7373alter table nonesuch rename to newnonesuch;
7474ERROR: Relation "nonesuch" does not exist
@@ -122,10 +122,10 @@ ERROR: Define: "basetype" unspecified
122122
123123-- missing index name
124124drop index;
125- ERROR: parser: parse error at or near ";" at character 11
125+ ERROR: syntax error at or near ";" at character 11
126126-- bad index name
127127drop index 314159;
128- ERROR: parser: parse error at or near "314159" at character 12
128+ ERROR: syntax error at or near "314159" at character 12
129129-- no such index
130130drop index nonesuch;
131131ERROR: index "nonesuch" does not exist
@@ -134,13 +134,13 @@ ERROR: index "nonesuch" does not exist
134134
135135-- missing aggregate name
136136drop aggregate;
137- ERROR: parser: parse error at or near ";" at character 15
137+ ERROR: syntax error at or near ";" at character 15
138138-- missing aggregate type
139139drop aggregate newcnt1;
140- ERROR: parser: parse error at or near ";" at character 23
140+ ERROR: syntax error at or near ";" at character 23
141141-- bad aggregate name
142142drop aggregate 314159 (int);
143- ERROR: parser: parse error at or near "314159" at character 16
143+ ERROR: syntax error at or near "314159" at character 16
144144-- bad aggregate type
145145drop aggregate newcnt (nonesuch);
146146ERROR: Type "nonesuch" does not exist
@@ -155,10 +155,10 @@ ERROR: RemoveAggregate: aggregate newcnt(real) does not exist
155155
156156-- missing function name
157157drop function ();
158- ERROR: parser: parse error at or near "(" at character 15
158+ ERROR: syntax error at or near "(" at character 15
159159-- bad function name
160160drop function 314159();
161- ERROR: parser: parse error at or near "314159" at character 15
161+ ERROR: syntax error at or near "314159" at character 15
162162-- no such function
163163drop function nonesuch();
164164ERROR: RemoveFunction: function nonesuch() does not exist
@@ -167,10 +167,10 @@ ERROR: RemoveFunction: function nonesuch() does not exist
167167
168168-- missing type name
169169drop type;
170- ERROR: parser: parse error at or near ";" at character 10
170+ ERROR: syntax error at or near ";" at character 10
171171-- bad type name
172172drop type 314159;
173- ERROR: parser: parse error at or near "314159" at character 11
173+ ERROR: syntax error at or near "314159" at character 11
174174-- no such type
175175drop type nonesuch;
176176ERROR: Type "nonesuch" does not exist
@@ -179,22 +179,22 @@ ERROR: Type "nonesuch" does not exist
179179
180180-- missing everything
181181drop operator;
182- ERROR: parser: parse error at or near ";" at character 14
182+ ERROR: syntax error at or near ";" at character 14
183183-- bad operator name
184184drop operator equals;
185- ERROR: parser: parse error at or near ";" at character 21
185+ ERROR: syntax error at or near ";" at character 21
186186-- missing type list
187187drop operator ===;
188- ERROR: parser: parse error at or near ";" at character 18
188+ ERROR: syntax error at or near ";" at character 18
189189-- missing parentheses
190190drop operator int4, int4;
191- ERROR: parser: parse error at or near "," at character 19
191+ ERROR: syntax error at or near "," at character 19
192192-- missing operator name
193193drop operator (int4, int4);
194- ERROR: parser: parse error at or near "(" at character 15
194+ ERROR: syntax error at or near "(" at character 15
195195-- missing type list contents
196196drop operator === ();
197- ERROR: parser: parse error at or near ")" at character 20
197+ ERROR: syntax error at or near ")" at character 20
198198-- no such operator
199199drop operator === (int4);
200200ERROR: parser: argument type missing (use NONE for unary operators)
@@ -206,7 +206,7 @@ drop operator = (nonesuch);
206206ERROR: parser: argument type missing (use NONE for unary operators)
207207-- no such type1
208208drop operator = ( , int4);
209- ERROR: parser: parse error at or near "," at character 19
209+ ERROR: syntax error at or near "," at character 19
210210-- no such type1
211211drop operator = (nonesuch, int4);
212212ERROR: Type "nonesuch" does not exist
@@ -215,28 +215,28 @@ drop operator = (int4, nonesuch);
215215ERROR: Type "nonesuch" does not exist
216216-- no such type2
217217drop operator = (int4, );
218- ERROR: parser: parse error at or near ")" at character 24
218+ ERROR: syntax error at or near ")" at character 24
219219--
220220-- DROP RULE
221221
222222-- missing rule name
223223drop rule;
224- ERROR: parser: parse error at or near ";" at character 10
224+ ERROR: syntax error at or near ";" at character 10
225225-- bad rule name
226226drop rule 314159;
227- ERROR: parser: parse error at or near "314159" at character 11
227+ ERROR: syntax error at or near "314159" at character 11
228228-- no such rule
229229drop rule nonesuch on noplace;
230230ERROR: Relation "noplace" does not exist
231231-- bad keyword
232232drop tuple rule nonesuch;
233- ERROR: parser: parse error at or near "tuple" at character 6
233+ ERROR: syntax error at or near "tuple" at character 6
234234-- no such rule
235235drop instance rule nonesuch on noplace;
236- ERROR: parser: parse error at or near "instance" at character 6
236+ ERROR: syntax error at or near "instance" at character 6
237237-- no such rule
238238drop rewrite rule nonesuch;
239- ERROR: parser: parse error at or near "rewrite" at character 6
239+ ERROR: syntax error at or near "rewrite" at character 6
240240--
241241-- Check that division-by-zero is properly caught.
242242--
0 commit comments