mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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>
This commit is contained in:
@ -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
|
||||
--
|
||||
|
Reference in New Issue
Block a user