From e587f202e447cebf07ae614487fa2230155ec645 Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Tue, 23 Feb 1999 07:31:02 +0000
Subject: [PATCH] Update error messages with more consistant format.

---
 src/test/regress/expected/alter_table.out     | 8 ++++----
 src/test/regress/expected/errors.out          | 2 +-
 src/test/regress/expected/inet.out            | 2 +-
 src/test/regress/expected/select_implicit.out | 6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/test/regress/expected/alter_table.out b/src/test/regress/expected/alter_table.out
index 62538fc78ec..1c244df734f 100644
--- a/src/test/regress/expected/alter_table.out
+++ b/src/test/regress/expected/alter_table.out
@@ -10,7 +10,7 @@ QUERY: ALTER TABLE tmp ADD COLUMN h abstime;
 QUERY: ALTER TABLE tmp ADD COLUMN i char;
 QUERY: ALTER TABLE tmp ADD COLUMN j abstime[];
 QUERY: ALTER TABLE tmp ADD COLUMN k dt;
-ERROR: type name lookup of dt failed
+ERROR:  Unable to locate type name 'dt' in catalog
 QUERY: ALTER TABLE tmp ADD COLUMN l tid;
 QUERY: ALTER TABLE tmp ADD COLUMN m xid;
 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,
 	'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
 	'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
 	'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
-ERROR: Relation tmp does not have attribute k
+ERROR:  Relation 'tmp' does not have attribute 'k'
 QUERY: SELECT * FROM tmp;
 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
 -------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
@@ -54,7 +54,7 @@ QUERY: ALTER TABLE tmp ADD COLUMN h abstime;
 QUERY: ALTER TABLE tmp ADD COLUMN i char;
 QUERY: ALTER TABLE tmp ADD COLUMN j abstime[];
 QUERY: ALTER TABLE tmp ADD COLUMN k dt;
-ERROR: type name lookup of dt failed
+ERROR:  Unable to locate type name 'dt' in catalog
 QUERY: ALTER TABLE tmp ADD COLUMN l tid;
 QUERY: ALTER TABLE tmp ADD COLUMN m xid;
 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,
 	'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
 	'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
 	'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
-ERROR: Relation tmp does not have attribute k
+ERROR:  Relation 'tmp' does not have attribute 'k'
 QUERY: SELECT * FROM tmp;
 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
 -------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
diff --git a/src/test/regress/expected/errors.out b/src/test/regress/expected/errors.out
index 837056caef9..d94f3e478a8 100644
--- a/src/test/regress/expected/errors.out
+++ b/src/test/regress/expected/errors.out
@@ -19,7 +19,7 @@ ERROR:  nonesuch: Table does not exist.
 QUERY: drop table;
 ERROR:  parser: parse error at or near ";"
 QUERY: drop table nonesuch;
-ERROR:  Relation nonesuch Does Not Exist!
+ERROR:  Relation 'nonesuch' does not exist
 QUERY: alter table rename;
 ERROR:  parser: parse error at or near ";"
 QUERY: alter table nonesuch rename to newnonesuch;
diff --git a/src/test/regress/expected/inet.out b/src/test/regress/expected/inet.out
index dddc7d371f4..bf69014ad94 100644
--- a/src/test/regress/expected/inet.out
+++ b/src/test/regress/expected/inet.out
@@ -1,5 +1,5 @@
 QUERY: DROP TABLE INET_TBL;
-ERROR:  Relation inet_tbl Does Not Exist!
+ERROR:  Relation 'inet_tbl' does not exist
 QUERY: CREATE TABLE INET_TBL (c cidr, i inet);
 QUERY: INSERT INTO INET_TBL (c, i) VALUES ('192.168.1', '192.168.1.226/24');
 QUERY: INSERT INTO INET_TBL (c, i) VALUES ('192.168.1.2/24', '192.168.1.226');
diff --git a/src/test/regress/expected/select_implicit.out b/src/test/regress/expected/select_implicit.out
index 2ee8b048223..910bf221de4 100644
--- a/src/test/regress/expected/select_implicit.out
+++ b/src/test/regress/expected/select_implicit.out
@@ -98,7 +98,7 @@ ERROR:  GROUP BY position 3 is not in target list
 QUERY: SELECT count(*) FROM test_missing_target x, test_missing_target y
 	WHERE x.a = y.a
 	GROUP BY b ORDER BY b;
-ERROR:  Column b is ambiguous
+ERROR:  Column 'b' is ambiguous
 QUERY: SELECT a, a FROM test_missing_target
 	ORDER BY a;
 a|a
@@ -236,7 +236,7 @@ count
 QUERY: SELECT count(x.a) FROM test_missing_target x, test_missing_target y
 	WHERE x.a = y.a
 	GROUP BY b/2 ORDER BY b/2;
-ERROR:  Column b is ambiguous
+ERROR:  Column 'b' is ambiguous
 QUERY: SELECT x.b/2, count(x.b) FROM test_missing_target x, test_missing_target y
 	WHERE x.a = y.a
 	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
 QUERY: SELECT count(b) FROM test_missing_target x, test_missing_target y
 	WHERE x.a = y.a
 	GROUP BY x.b/2;
-ERROR:  Column b is ambiguous
+ERROR:  Column 'b' is ambiguous
 QUERY: SELECT count(x.b) INTO TABLE test_missing_target3
 FROM test_missing_target x, test_missing_target y
 	WHERE x.a = y.a
-- 
GitLab