]> granicus.if.org Git - postgresql/commitdiff
More changes to match new error format.
authorBruce Momjian <bruce@momjian.us>
Sun, 18 Aug 2002 03:00:17 +0000 (03:00 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 18 Aug 2002 03:00:17 +0000 (03:00 +0000)
src/test/regress/output/constraints.source
src/test/regress/output/create_function_1.source

index cfc5afa67d544e2a25877574912ab7e5d52c1559..7df5e414e87acb631edd59f397b650f02b0ed05a 100644 (file)
@@ -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;
index 2f59a693319419f1f744c54aac5053d7e891a7d9..2c98b6c2eac342c0f20740be8a7cf14a8995f95a 100644 (file)
@@ -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