summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-18 03:00:17 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-18 03:00:17 +0000
commit4b26e7d24bda2d4de00cab1ddb482241487872c0 (patch)
treefe2186939bedb6a771fd106916006950ebf54a30 /src
parentc9a524000d02a60c5f7d689a24baca7b04773f0a (diff)
downloadpostgresql-4b26e7d24bda2d4de00cab1ddb482241487872c0.tar.gz
More changes to match new error format.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/output/constraints.source4
-rw-r--r--src/test/regress/output/create_function_1.source2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/regress/output/constraints.source b/src/test/regress/output/constraints.source
index cfc5afa67d..7df5e414e8 100644
--- a/src/test/regress/output/constraints.source
+++ b/src/test/regress/output/constraints.source
@@ -45,12 +45,12 @@ SELECT '' AS four, * FROM DEFAULTEXPR_TBL;
-- syntax errors
-- test for extraneous comma
CREATE TABLE error_tbl (i int DEFAULT (100, ));
-ERROR: parser: parse error at or near ","
+ERROR: parser: parse error at or near "," at character 43
-- this will fail because gram.y uses b_expr not a_expr for defaults,
-- to avoid a shift/reduce conflict that arises from NOT NULL being
-- part of the column definition syntax:
CREATE TABLE error_tbl (b1 bool DEFAULT 1 IN (1, 2));
-ERROR: parser: parse error at or near "IN"
+ERROR: parser: parse error at or near "IN" at character 43
-- this should work, however:
CREATE TABLE error_tbl (b1 bool DEFAULT (1 IN (1, 2)));
DROP TABLE error_tbl;
diff --git a/src/test/regress/output/create_function_1.source b/src/test/regress/output/create_function_1.source
index 2f59a69331..2c98b6c2ea 100644
--- a/src/test/regress/output/create_function_1.source
+++ b/src/test/regress/output/create_function_1.source
@@ -40,7 +40,7 @@ CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
ERROR: return type mismatch in function: declared to return integer, returns "unknown"
CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
AS 'not even SQL';
-ERROR: parser: parse error at or near "not"
+ERROR: parser: parse error at or near "not" at character 1
CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
AS 'SELECT 1, 2, 3;';
ERROR: function declared to return integer returns multiple columns in final SELECT