mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +03:00
Error message editing in backend/utils (except /adt).
This commit is contained in:
@@ -491,7 +491,8 @@ insert into atacc1 (test) values (2);
|
||||
-- add a unique constraint (fails)
|
||||
alter table atacc1 add constraint atacc_test1 unique (test);
|
||||
NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index "atacc_test1" for table "atacc1"
|
||||
ERROR: Cannot create unique index. Table contains non-unique values
|
||||
ERROR: could not create unique index
|
||||
DETAIL: Table contains duplicated values.
|
||||
insert into atacc1 (test) values (3);
|
||||
drop table atacc1;
|
||||
-- let's do one where the unique constraint fails
|
||||
@@ -558,7 +559,8 @@ insert into atacc1 (test) values (2);
|
||||
-- add a primary key (fails)
|
||||
alter table atacc1 add constraint atacc_test1 primary key (test);
|
||||
NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index "atacc_test1" for table "atacc1"
|
||||
ERROR: Cannot create unique index. Table contains non-unique values
|
||||
ERROR: could not create unique index
|
||||
DETAIL: Table contains duplicated values.
|
||||
insert into atacc1 (test) values (3);
|
||||
drop table atacc1;
|
||||
-- let's do another one where the primary key constraint fails when added
|
||||
|
||||
Reference in New Issue
Block a user