Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06b604b

Browse files
committed
Modify regression tests to match new error reporting format from Gavin.
1 parent3dd8369 commit06b604b

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
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: parse error at or near "select" at character 10
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: parse error at or near "from" at character 29
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: parse error at or near ";" at character 12
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: parse error at or near ";" at character 11
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: parse error at or near ";" at character 19
6363
-- no such relation
6464
alter table nonesuch rename to newnonesuch;
6565
ERROR: Relation "nonesuch" does not exist
@@ -113,10 +113,10 @@ ERROR: Define: "basetype" unspecified
113113

114114
-- missing index name
115115
drop index;
116-
ERROR: parser: parse error at or near ";"
116+
ERROR: parser: parse error at or near ";" at character 11
117117
-- bad index name
118118
drop index 314159;
119-
ERROR: parser: parse error at or near "314159"
119+
ERROR: parser: parse error at or near "314159" at character 12
120120
-- no such index
121121
drop index nonesuch;
122122
ERROR: index "nonesuch" does not exist
@@ -125,13 +125,13 @@ ERROR: index "nonesuch" does not exist
125125

126126
-- missing aggregate name
127127
drop aggregate;
128-
ERROR: parser: parse error at or near ";"
128+
ERROR: parser: parse error at or near ";" at character 15
129129
-- missing aggregate type
130130
drop aggregate newcnt1;
131-
ERROR: parser: parse error at or near ";"
131+
ERROR: parser: parse error at or near ";" at character 23
132132
-- bad aggregate name
133133
drop aggregate 314159 (int);
134-
ERROR: parser: parse error at or near "314159"
134+
ERROR: parser: parse error at or near "314159" at character 16
135135
-- bad aggregate type
136136
drop aggregate newcnt (nonesuch);
137137
ERROR: Type "nonesuch" does not exist
@@ -146,10 +146,10 @@ ERROR: RemoveAggregate: aggregate newcnt(real) does not exist
146146

147147
-- missing function name
148148
drop function ();
149-
ERROR: parser: parse error at or near "("
149+
ERROR: parser: parse error at or near "(" at character 15
150150
-- bad function name
151151
drop function 314159();
152-
ERROR: parser: parse error at or near "314159"
152+
ERROR: parser: parse error at or near "314159" at character 15
153153
-- no such function
154154
drop function nonesuch();
155155
ERROR: RemoveFunction: function nonesuch() does not exist
@@ -158,10 +158,10 @@ ERROR: RemoveFunction: function nonesuch() does not exist
158158

159159
-- missing type name
160160
drop type;
161-
ERROR: parser: parse error at or near ";"
161+
ERROR: parser: parse error at or near ";" at character 10
162162
-- bad type name
163163
drop type 314159;
164-
ERROR: parser: parse error at or near "314159"
164+
ERROR: parser: parse error at or near "314159" at character 11
165165
-- no such type
166166
drop type nonesuch;
167167
ERROR: Type "nonesuch" does not exist
@@ -170,22 +170,22 @@ ERROR: Type "nonesuch" does not exist
170170

171171
-- missing everything
172172
drop operator;
173-
ERROR: parser: parse error at or near ";"
173+
ERROR: parser: parse error at or near ";" at character 14
174174
-- bad operator name
175175
drop operator equals;
176-
ERROR: parser: parse error at or near ";"
176+
ERROR: parser: parse error at or near ";" at character 21
177177
-- missing type list
178178
drop operator ===;
179-
ERROR: parser: parse error at or near ";"
179+
ERROR: parser: parse error at or near ";" at character 18
180180
-- missing parentheses
181181
drop operator int4, int4;
182-
ERROR: parser: parse error at or near ","
182+
ERROR: parser: parse error at or near "," at character 19
183183
-- missing operator name
184184
drop operator (int4, int4);
185-
ERROR: parser: parse error at or near "("
185+
ERROR: parser: parse error at or near "(" at character 15
186186
-- missing type list contents
187187
drop operator === ();
188-
ERROR: parser: parse error at or near ")"
188+
ERROR: parser: parse error at or near ")" at character 20
189189
-- no such operator
190190
drop operator === (int4);
191191
ERROR: parser: argument type missing (use NONE for unary operators)
@@ -197,7 +197,7 @@ drop operator = (nonesuch);
197197
ERROR: parser: argument type missing (use NONE for unary operators)
198198
-- no such type1
199199
drop operator = ( , int4);
200-
ERROR: parser: parse error at or near ","
200+
ERROR: parser: parse error at or near "," at character 19
201201
-- no such type1
202202
drop operator = (nonesuch, int4);
203203
ERROR: Type "nonesuch" does not exist
@@ -206,25 +206,25 @@ drop operator = (int4, nonesuch);
206206
ERROR: Type "nonesuch" does not exist
207207
-- no such type2
208208
drop operator = (int4, );
209-
ERROR: parser: parse error at or near ")"
209+
ERROR: parser: parse error at or near ")" at character 24
210210
--
211211
-- DROP RULE
212212

213213
-- missing rule name
214214
drop rule;
215-
ERROR: parser: parse error at or near ";"
215+
ERROR: parser: parse error at or near ";" at character 10
216216
-- bad rule name
217217
drop rule 314159;
218-
ERROR: parser: parse error at or near "314159"
218+
ERROR: parser: parse error at or near "314159" at character 11
219219
-- no such rule
220220
drop rule nonesuch on noplace;
221221
ERROR: Relation "noplace" does not exist
222222
-- bad keyword
223223
drop tuple rule nonesuch;
224-
ERROR: parser: parse error at or near "tuple"
224+
ERROR: parser: parse error at or near "tuple" at character 6
225225
-- no such rule
226226
drop instance rule nonesuch on noplace;
227-
ERROR: parser: parse error at or near "instance"
227+
ERROR: parser: parse error at or near "instance" at character 6
228228
-- no such rule
229229
drop rewrite rule nonesuch;
230-
ERROR: parser: parse error at or near "rewrite"
230+
ERROR: parser: parse error at or near "rewrite" at character 6

‎src/test/regress/expected/strings.out‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SELECT 'first line'
1818
' - next line' /* this comment is not allowed here */
1919
' - third line'
2020
AS "Illegal comment within continuation";
21-
ERROR: parser: parse error at or near "' - third line'"
21+
ERROR: parser: parse error at or near "' - third line'" at character 89
2222
--
2323
-- test conversions between various string types
2424
-- E021-10 implicit casting among the character data types

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp