diff options
Diffstat (limited to 'src/test/regress/sql/domain.sql')
-rw-r--r-- | src/test/regress/sql/domain.sql | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/regress/sql/domain.sql b/src/test/regress/sql/domain.sql index 763c68f1db6..b5a70ee8be7 100644 --- a/src/test/regress/sql/domain.sql +++ b/src/test/regress/sql/domain.sql @@ -458,6 +458,8 @@ alter domain con add constraint t check (VALUE < 1); -- fails alter domain con add constraint t check (VALUE < 34); alter domain con add check (VALUE > 0); +\dD con + insert into domcontest values (-5); -- fails insert into domcontest values (42); -- fails insert into domcontest values (5); @@ -477,18 +479,20 @@ create table domconnotnulltest ); insert into domconnotnulltest default values; -alter domain connotnull add not null value; -- fails +alter domain connotnull add not null; -- fails update domconnotnulltest set col1 = 5; -alter domain connotnull add not null value; -- fails +alter domain connotnull add not null; -- fails update domconnotnulltest set col2 = 6; -alter domain connotnull add constraint constr1 not null value; +alter domain connotnull add constraint constr1 not null; select count(*) from pg_constraint where contypid = 'connotnull'::regtype and contype = 'n'; -alter domain connotnull add constraint constr1bis not null value; -- redundant +alter domain connotnull add constraint constr1bis not null; -- redundant select count(*) from pg_constraint where contypid = 'connotnull'::regtype and contype = 'n'; +\dD connotnull + update domconnotnulltest set col1 = null; -- fails alter domain connotnull drop constraint constr1; |