@@ -452,7 +452,7 @@ drop table atacc1;
452
452
create table atacc1 ( test int );
453
453
-- add a unique constraint
454
454
alter table atacc1 add constraint atacc_test1 unique (test);
455
- NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
455
+ NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
456
456
-- insert first value
457
457
insert into atacc1 (test) values (2);
458
458
-- should fail
@@ -462,7 +462,7 @@ ERROR: Cannot insert a duplicate key into unique index atacc_test1
462
462
insert into atacc1 (test) values (4);
463
463
-- try adding a unique oid constraint
464
464
alter table atacc1 add constraint atacc_oid1 unique(oid);
465
- NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_oid1' for table 'atacc1'
465
+ NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_oid1' for table 'atacc1'
466
466
drop table atacc1;
467
467
-- let's do one where the unique constraint fails when added
468
468
create table atacc1 ( test int );
@@ -471,7 +471,7 @@ insert into atacc1 (test) values (2);
471
471
insert into atacc1 (test) values (2);
472
472
-- add a unique constraint (fails)
473
473
alter table atacc1 add constraint atacc_test1 unique (test);
474
- NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
474
+ NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
475
475
ERROR: Cannot create unique index. Table contains non-unique values
476
476
insert into atacc1 (test) values (3);
477
477
drop table atacc1;
@@ -486,7 +486,7 @@ drop table atacc1;
486
486
create table atacc1 ( test int, test2 int);
487
487
-- add a unique constraint
488
488
alter table atacc1 add constraint atacc_test1 unique (test, test2);
489
- NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
489
+ NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
490
490
-- insert initial value
491
491
insert into atacc1 (test,test2) values (4,4);
492
492
-- should fail
@@ -501,7 +501,7 @@ drop table atacc1;
501
501
create table atacc1 (test int, test2 int, unique(test));
502
502
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'atacc1_test_key' for table 'atacc1'
503
503
alter table atacc1 add unique (test2);
504
- NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc1_test2_key' for table 'atacc1'
504
+ NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc1_test2_key' for table 'atacc1'
505
505
-- should fail for @@ second one @@
506
506
insert into atacc1 (test2, test) values (3, 3);
507
507
insert into atacc1 (test2, test) values (2, 3);
0 commit comments