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

Commit4b26e7d

Browse files
committed
More changes to match new error format.
1 parentc9a5240 commit4b26e7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/test/regress/output/constraints.source‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ SELECT '' AS four, * FROM DEFAULTEXPR_TBL;
4545
-- syntax errors
4646
-- test for extraneous comma
4747
CREATE TABLE error_tbl (i int DEFAULT (100, ));
48-
ERROR: parser: parse error at or near ","
48+
ERROR: parser: parse error at or near "," at character 43
4949
-- this will fail because gram.y uses b_expr not a_expr for defaults,
5050
-- to avoid a shift/reduce conflict that arises from NOT NULL being
5151
-- part of the column definition syntax:
5252
CREATE TABLE error_tbl (b1 bool DEFAULT 1 IN (1, 2));
53-
ERROR: parser: parse error at or near "IN"
53+
ERROR: parser: parse error at or near "IN" at character 43
5454
-- this should work, however:
5555
CREATE TABLE error_tbl (b1 bool DEFAULT (1 IN (1, 2)));
5656
DROP TABLE error_tbl;

‎src/test/regress/output/create_function_1.source‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
4040
ERROR: return type mismatch in function: declared to return integer, returns "unknown"
4141
CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
4242
AS 'not even SQL';
43-
ERROR: parser: parse error at or near "not"
43+
ERROR: parser: parse error at or near "not" at character 1
4444
CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
4545
AS 'SELECT 1, 2, 3;';
4646
ERROR: function declared to return integer returns multiple columns in final SELECT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp