@@ -22,13 +22,13 @@ select 1;
22
22
23
23
-- missing relation name
24
24
select;
25
- ERROR: parser: parse error at or near ";" at character 7
25
+ ERROR: syntax error at or near ";" at character 7
26
26
-- no such relation
27
27
select * from nonesuch;
28
28
ERROR: Relation "nonesuch" does not exist
29
29
-- missing target list
30
30
select 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
32
32
-- bad name in target list
33
33
select nonesuch from pg_database;
34
34
ERROR: Attribute "nonesuch" not found
@@ -40,7 +40,7 @@ select * from pg_database where pg_database.datname = nonesuch;
40
40
ERROR: Attribute "nonesuch" not found
41
41
-- bad select distinct on syntax, distinct attribute missing
42
42
select 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
44
44
-- bad select distinct on syntax, distinct attribute not in target list
45
45
select distinct on (foobar) * from pg_database;
46
46
ERROR: Attribute "foobar" not found
@@ -49,7 +49,7 @@ ERROR: Attribute "foobar" not found
49
49
50
50
-- missing relation name (this had better not wildcard!)
51
51
delete from;
52
- ERROR: parser: parse error at or near ";" at character 12
52
+ ERROR: syntax error at or near ";" at character 12
53
53
-- no such relation
54
54
delete from nonesuch;
55
55
ERROR: Relation "nonesuch" does not exist
@@ -58,7 +58,7 @@ ERROR: Relation "nonesuch" does not exist
58
58
59
59
-- missing relation name (this had better not wildcard!)
60
60
drop table;
61
- ERROR: parser: parse error at or near ";" at character 11
61
+ ERROR: syntax error at or near ";" at character 11
62
62
-- no such relation
63
63
drop table nonesuch;
64
64
ERROR: table "nonesuch" does not exist
@@ -68,7 +68,7 @@ ERROR: table "nonesuch" does not exist
68
68
-- relation renaming
69
69
-- missing relation name
70
70
alter table rename;
71
- ERROR: parser: parse error at or near ";" at character 19
71
+ ERROR: syntax error at or near ";" at character 19
72
72
-- no such relation
73
73
alter table nonesuch rename to newnonesuch;
74
74
ERROR: Relation "nonesuch" does not exist
@@ -122,10 +122,10 @@ ERROR: Define: "basetype" unspecified
122
122
123
123
-- missing index name
124
124
drop index;
125
- ERROR: parser: parse error at or near ";" at character 11
125
+ ERROR: syntax error at or near ";" at character 11
126
126
-- bad index name
127
127
drop 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
129
129
-- no such index
130
130
drop index nonesuch;
131
131
ERROR: index "nonesuch" does not exist
@@ -134,13 +134,13 @@ ERROR: index "nonesuch" does not exist
134
134
135
135
-- missing aggregate name
136
136
drop aggregate;
137
- ERROR: parser: parse error at or near ";" at character 15
137
+ ERROR: syntax error at or near ";" at character 15
138
138
-- missing aggregate type
139
139
drop aggregate newcnt1;
140
- ERROR: parser: parse error at or near ";" at character 23
140
+ ERROR: syntax error at or near ";" at character 23
141
141
-- bad aggregate name
142
142
drop 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
144
144
-- bad aggregate type
145
145
drop aggregate newcnt (nonesuch);
146
146
ERROR: Type "nonesuch" does not exist
@@ -155,10 +155,10 @@ ERROR: RemoveAggregate: aggregate newcnt(real) does not exist
155
155
156
156
-- missing function name
157
157
drop function ();
158
- ERROR: parser: parse error at or near "(" at character 15
158
+ ERROR: syntax error at or near "(" at character 15
159
159
-- bad function name
160
160
drop 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
162
162
-- no such function
163
163
drop function nonesuch();
164
164
ERROR: RemoveFunction: function nonesuch() does not exist
@@ -167,10 +167,10 @@ ERROR: RemoveFunction: function nonesuch() does not exist
167
167
168
168
-- missing type name
169
169
drop type;
170
- ERROR: parser: parse error at or near ";" at character 10
170
+ ERROR: syntax error at or near ";" at character 10
171
171
-- bad type name
172
172
drop 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
174
174
-- no such type
175
175
drop type nonesuch;
176
176
ERROR: Type "nonesuch" does not exist
@@ -179,22 +179,22 @@ ERROR: Type "nonesuch" does not exist
179
179
180
180
-- missing everything
181
181
drop operator;
182
- ERROR: parser: parse error at or near ";" at character 14
182
+ ERROR: syntax error at or near ";" at character 14
183
183
-- bad operator name
184
184
drop operator equals;
185
- ERROR: parser: parse error at or near ";" at character 21
185
+ ERROR: syntax error at or near ";" at character 21
186
186
-- missing type list
187
187
drop operator ===;
188
- ERROR: parser: parse error at or near ";" at character 18
188
+ ERROR: syntax error at or near ";" at character 18
189
189
-- missing parentheses
190
190
drop operator int4, int4;
191
- ERROR: parser: parse error at or near "," at character 19
191
+ ERROR: syntax error at or near "," at character 19
192
192
-- missing operator name
193
193
drop operator (int4, int4);
194
- ERROR: parser: parse error at or near "(" at character 15
194
+ ERROR: syntax error at or near "(" at character 15
195
195
-- missing type list contents
196
196
drop operator === ();
197
- ERROR: parser: parse error at or near ")" at character 20
197
+ ERROR: syntax error at or near ")" at character 20
198
198
-- no such operator
199
199
drop operator === (int4);
200
200
ERROR: parser: argument type missing (use NONE for unary operators)
@@ -206,7 +206,7 @@ drop operator = (nonesuch);
206
206
ERROR: parser: argument type missing (use NONE for unary operators)
207
207
-- no such type1
208
208
drop operator = ( , int4);
209
- ERROR: parser: parse error at or near "," at character 19
209
+ ERROR: syntax error at or near "," at character 19
210
210
-- no such type1
211
211
drop operator = (nonesuch, int4);
212
212
ERROR: Type "nonesuch" does not exist
@@ -215,28 +215,28 @@ drop operator = (int4, nonesuch);
215
215
ERROR: Type "nonesuch" does not exist
216
216
-- no such type2
217
217
drop operator = (int4, );
218
- ERROR: parser: parse error at or near ")" at character 24
218
+ ERROR: syntax error at or near ")" at character 24
219
219
--
220
220
-- DROP RULE
221
221
222
222
-- missing rule name
223
223
drop rule;
224
- ERROR: parser: parse error at or near ";" at character 10
224
+ ERROR: syntax error at or near ";" at character 10
225
225
-- bad rule name
226
226
drop 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
228
228
-- no such rule
229
229
drop rule nonesuch on noplace;
230
230
ERROR: Relation "noplace" does not exist
231
231
-- bad keyword
232
232
drop 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
234
234
-- no such rule
235
235
drop 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
237
237
-- no such rule
238
238
drop 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
240
240
--
241
241
-- Check that division-by-zero is properly caught.
242
242
--
0 commit comments