@@ -19,7 +19,7 @@ select 1
19
19
select
20
20
-- no such relation
21
21
select * from nonesuch;
22
- ERROR: parser: parse error at or near "select"
22
+ ERROR: parser: syntax error at or near "select"
23
23
-- bad name in target list
24
24
select nonesuch from pg_database;
25
25
ERROR: Attribute 'nonesuch' not found
@@ -31,7 +31,7 @@ select * from pg_database where pg_database.datname = nonesuch;
31
31
ERROR: Attribute 'nonesuch' not found
32
32
-- bad select distinct on syntax, distinct attribute missing
33
33
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"
35
35
-- bad select distinct on syntax, distinct attribute not in target list
36
36
select distinct on (foobar) * from pg_database;
37
37
ERROR: Attribute 'foobar' not found
@@ -40,7 +40,7 @@ ERROR: Attribute 'foobar' not found
40
40
41
41
-- missing relation name (this had better not wildcard!)
42
42
delete from;
43
- ERROR: parser: parse error at or near ";"
43
+ ERROR: parser: syntax error at or near ";"
44
44
-- no such relation
45
45
delete from nonesuch;
46
46
ERROR: Relation "nonesuch" does not exist
@@ -49,7 +49,7 @@ ERROR: Relation "nonesuch" does not exist
49
49
50
50
-- missing relation name (this had better not wildcard!)
51
51
drop table;
52
- ERROR: parser: parse error at or near ";"
52
+ ERROR: parser: syntax error at or near ";"
53
53
-- no such relation
54
54
drop table nonesuch;
55
55
ERROR: table "nonesuch" does not exist
@@ -59,7 +59,7 @@ ERROR: table "nonesuch" does not exist
59
59
-- relation renaming
60
60
-- missing relation name
61
61
alter table rename;
62
- ERROR: parser: parse error at or near ";"
62
+ ERROR: parser: syntax error at or near ";"
63
63
-- no such relation
64
64
alter table nonesuch rename to newnonesuch;
65
65
ERROR: Relation "nonesuch" does not exist
@@ -116,10 +116,10 @@ ERROR: Define: "basetype" unspecified
116
116
117
117
-- missing index name
118
118
drop index;
119
- ERROR: parser: parse error at or near ";"
119
+ ERROR: parser: syntax error at or near ";"
120
120
-- bad index name
121
121
drop index 314159;
122
- ERROR: parser: parse error at or near "314159"
122
+ ERROR: parser: syntax error at or near "314159"
123
123
-- no such index
124
124
drop index nonesuch;
125
125
ERROR: index "nonesuch" does not exist
@@ -128,13 +128,13 @@ ERROR: index "nonesuch" does not exist
128
128
129
129
-- missing aggregate name
130
130
drop aggregate;
131
- ERROR: parser: parse error at or near ";"
131
+ ERROR: parser: syntax error at or near ";"
132
132
-- missing aggregate type
133
133
drop aggregate newcnt1;
134
- ERROR: parser: parse error at or near ";"
134
+ ERROR: parser: syntax error at or near ";"
135
135
-- bad aggregate name
136
136
drop aggregate 314159 (int);
137
- ERROR: parser: parse error at or near "314159"
137
+ ERROR: parser: syntax error at or near "314159"
138
138
-- bad aggregate type
139
139
drop aggregate newcnt (nonesuch);
140
140
ERROR: RemoveAggregate: type 'nonesuch' does not exist
@@ -149,10 +149,10 @@ ERROR: RemoveAggregate: aggregate 'newcnt' for type real does not exist
149
149
150
150
-- missing function name
151
151
drop function ();
152
- ERROR: parser: parse error at or near "("
152
+ ERROR: parser: syntax error at or near "("
153
153
-- bad function name
154
154
drop function 314159();
155
- ERROR: parser: parse error at or near "314159"
155
+ ERROR: parser: syntax error at or near "314159"
156
156
-- no such function
157
157
drop function nonesuch();
158
158
ERROR: RemoveFunction: function 'nonesuch()' does not exist
@@ -161,10 +161,10 @@ ERROR: RemoveFunction: function 'nonesuch()' does not exist
161
161
162
162
-- missing type name
163
163
drop type;
164
- ERROR: parser: parse error at or near ";"
164
+ ERROR: parser: syntax error at or near ";"
165
165
-- bad type name
166
166
drop type 314159;
167
- ERROR: parser: parse error at or near "314159"
167
+ ERROR: parser: syntax error at or near "314159"
168
168
-- no such type
169
169
drop type nonesuch;
170
170
ERROR: RemoveType: type 'nonesuch' does not exist
@@ -173,22 +173,22 @@ ERROR: RemoveType: type 'nonesuch' does not exist
173
173
174
174
-- missing everything
175
175
drop operator;
176
- ERROR: parser: parse error at or near ";"
176
+ ERROR: parser: syntax error at or near ";"
177
177
-- bad operator name
178
178
drop operator equals;
179
- ERROR: parser: parse error at or near "equals"
179
+ ERROR: parser: syntax error at or near "equals"
180
180
-- missing type list
181
181
drop operator ===;
182
- ERROR: parser: parse error at or near ";"
182
+ ERROR: parser: syntax error at or near ";"
183
183
-- missing parentheses
184
184
drop operator int4, int4;
185
- ERROR: parser: parse error at or near "int4"
185
+ ERROR: parser: syntax error at or near "int4"
186
186
-- missing operator name
187
187
drop operator (int4, int4);
188
- ERROR: parser: parse error at or near "("
188
+ ERROR: parser: syntax error at or near "("
189
189
-- missing type list contents
190
190
drop operator === ();
191
- ERROR: parser: parse error at or near ")"
191
+ ERROR: parser: syntax error at or near ")"
192
192
-- no such operator
193
193
drop operator === (int4);
194
194
ERROR: parser: argument type missing (use NONE for unary operators)
@@ -200,7 +200,7 @@ drop operator = (nonesuch);
200
200
ERROR: parser: argument type missing (use NONE for unary operators)
201
201
-- no such type1
202
202
drop operator = ( , int4);
203
- ERROR: parser: parse error at or near ","
203
+ ERROR: parser: syntax error at or near ","
204
204
-- no such type1
205
205
drop operator = (nonesuch, int4);
206
206
ERROR: RemoveOperator: type 'nonesuch' does not exist
@@ -209,25 +209,25 @@ drop operator = (int4, nonesuch);
209
209
ERROR: RemoveOperator: type 'nonesuch' does not exist
210
210
-- no such type2
211
211
drop operator = (int4, );
212
- ERROR: parser: parse error at or near ")"
212
+ ERROR: parser: syntax error at or near ")"
213
213
--
214
214
-- DROP RULE
215
215
216
216
-- missing rule name
217
217
drop rule;
218
- ERROR: parser: parse error at or near ";"
218
+ ERROR: parser: syntax error at or near ";"
219
219
-- bad rule name
220
220
drop rule 314159;
221
- ERROR: parser: parse error at or near "314159"
221
+ ERROR: parser: syntax error at or near "314159"
222
222
-- no such rule
223
223
drop rule nonesuch;
224
224
ERROR: Rule or view "nonesuch" not found
225
225
-- bad keyword
226
226
drop tuple rule nonesuch;
227
- ERROR: parser: parse error at or near "tuple"
227
+ ERROR: parser: syntax error at or near "tuple"
228
228
-- no such rule
229
229
drop instance rule nonesuch;
230
- ERROR: parser: parse error at or near "instance"
230
+ ERROR: parser: syntax error at or near "instance"
231
231
-- no such rule
232
232
drop rewrite rule nonesuch;
233
- ERROR: parser: parse error at or near "rewrite"
233
+ ERROR: parser: syntax error at or near "rewrite"
0 commit comments