summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPeter Eisentraut2018-08-22 06:42:49 +0000
committerPeter Eisentraut2018-08-30 06:20:23 +0000
commita4a232b1e70229a6ba0e592f6775c019bb171d9a (patch)
tree32da1b78844852199c1c620a968b95cf412a8aaf /src/test
parent4b035841a1bcaadbe4f9e0e174aef773a4fa41f6 (diff)
Error position support for defaults and check constraints
Add support for error position reporting for the expressions contained in defaults and check constraint definitions. This currently works only for CREATE TABLE, not ALTER TABLE, because the latter is not set up to pass around the original query string. Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/regress/output/constraints.source2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/regress/output/constraints.source b/src/test/regress/output/constraints.source
index a6a1df18e73..e8389064b0a 100644
--- a/src/test/regress/output/constraints.source
+++ b/src/test/regress/output/constraints.source
@@ -228,6 +228,8 @@ CREATE TABLE SYS_COL_CHECK_TBL (city text, state text, is_capital bool,
altitude int,
CHECK (NOT (is_capital AND ctid::text = 'sys_col_check_tbl')));
ERROR: system column "ctid" reference in check constraint is invalid
+LINE 3: CHECK (NOT (is_capital AND ctid::text = 'sys_col_check...
+ ^
--
-- Check inheritance of defaults and constraints
--