Skip to content

Commit e587f20

Browse files
author
Thomas G. Lockhart
committed
Update error messages with more consistant format.
1 parent 4335a37 commit e587f20

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/test/regress/expected/alter_table.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ QUERY: ALTER TABLE tmp ADD COLUMN h abstime;
1010
QUERY: ALTER TABLE tmp ADD COLUMN i char;
1111
QUERY: ALTER TABLE tmp ADD COLUMN j abstime[];
1212
QUERY: ALTER TABLE tmp ADD COLUMN k dt;
13-
ERROR: type name lookup of dt failed
13+
ERROR: Unable to locate type name 'dt' in catalog
1414
QUERY: ALTER TABLE tmp ADD COLUMN l tid;
1515
QUERY: ALTER TABLE tmp ADD COLUMN m xid;
1616
QUERY: ALTER TABLE tmp ADD COLUMN n oid8;
@@ -33,7 +33,7 @@ QUERY: INSERT INTO tmp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t,
3333
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
3434
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
3535
'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
36-
ERROR: Relation tmp does not have attribute k
36+
ERROR: Relation 'tmp' does not have attribute 'k'
3737
QUERY: SELECT * FROM tmp;
3838
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
3939
-------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
@@ -54,7 +54,7 @@ QUERY: ALTER TABLE tmp ADD COLUMN h abstime;
5454
QUERY: ALTER TABLE tmp ADD COLUMN i char;
5555
QUERY: ALTER TABLE tmp ADD COLUMN j abstime[];
5656
QUERY: ALTER TABLE tmp ADD COLUMN k dt;
57-
ERROR: type name lookup of dt failed
57+
ERROR: Unable to locate type name 'dt' in catalog
5858
QUERY: ALTER TABLE tmp ADD COLUMN l tid;
5959
QUERY: ALTER TABLE tmp ADD COLUMN m xid;
6060
QUERY: ALTER TABLE tmp ADD COLUMN n oid8;
@@ -77,7 +77,7 @@ QUERY: INSERT INTO tmp (a, b, c, d, e, f, g, h, i, j, k, l, m, n, p, q, r, s, t,
7777
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
7878
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
7979
'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
80-
ERROR: Relation tmp does not have attribute k
80+
ERROR: Relation 'tmp' does not have attribute 'k'
8181
QUERY: SELECT * FROM tmp;
8282
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
8383
-------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

src/test/regress/expected/errors.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ERROR: nonesuch: Table does not exist.
1919
QUERY: drop table;
2020
ERROR: parser: parse error at or near ";"
2121
QUERY: drop table nonesuch;
22-
ERROR: Relation nonesuch Does Not Exist!
22+
ERROR: Relation 'nonesuch' does not exist
2323
QUERY: alter table rename;
2424
ERROR: parser: parse error at or near ";"
2525
QUERY: alter table nonesuch rename to newnonesuch;

src/test/regress/expected/inet.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
QUERY: DROP TABLE INET_TBL;
2-
ERROR: Relation inet_tbl Does Not Exist!
2+
ERROR: Relation 'inet_tbl' does not exist
33
QUERY: CREATE TABLE INET_TBL (c cidr, i inet);
44
QUERY: INSERT INTO INET_TBL (c, i) VALUES ('192.168.1', '192.168.1.226/24');
55
QUERY: INSERT INTO INET_TBL (c, i) VALUES ('192.168.1.2/24', '192.168.1.226');

src/test/regress/expected/select_implicit.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ERROR: GROUP BY position 3 is not in target list
9898
QUERY: SELECT count(*) FROM test_missing_target x, test_missing_target y
9999
WHERE x.a = y.a
100100
GROUP BY b ORDER BY b;
101-
ERROR: Column b is ambiguous
101+
ERROR: Column 'b' is ambiguous
102102
QUERY: SELECT a, a FROM test_missing_target
103103
ORDER BY a;
104104
a|a
@@ -236,7 +236,7 @@ count
236236
QUERY: SELECT count(x.a) FROM test_missing_target x, test_missing_target y
237237
WHERE x.a = y.a
238238
GROUP BY b/2 ORDER BY b/2;
239-
ERROR: Column b is ambiguous
239+
ERROR: Column 'b' is ambiguous
240240
QUERY: SELECT x.b/2, count(x.b) FROM test_missing_target x, test_missing_target y
241241
WHERE x.a = y.a
242242
GROUP BY x.b/2;
@@ -250,7 +250,7 @@ QUERY: SELECT x.b/2, count(x.b) FROM test_missing_target x, test_missing_target
250250
QUERY: SELECT count(b) FROM test_missing_target x, test_missing_target y
251251
WHERE x.a = y.a
252252
GROUP BY x.b/2;
253-
ERROR: Column b is ambiguous
253+
ERROR: Column 'b' is ambiguous
254254
QUERY: SELECT count(x.b) INTO TABLE test_missing_target3
255255
FROM test_missing_target x, test_missing_target y
256256
WHERE x.a = y.a

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy