@@ -271,10 +271,10 @@ SELECT unique1 FROM tenk1 WHERE unique1 < 5;
271271
272272-- FOREIGN KEY CONSTRAINT adding TEST
273273CREATE TABLE tmp2 (a int primary key);
274- NOTICE: CREATE TABLE / ADD PRIMARY KEY will create implicit index 'tmp2_pkey' for table 'tmp2'
274+ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'tmp2_pkey' for table 'tmp2'
275275CREATE TABLE tmp3 (a int, b int);
276276CREATE TABLE tmp4 (a int, b int, unique(a,b));
277- NOTICE: CREATE TABLE / ADD UNIQUE will create implicit index 'tmp4_a_key' for table 'tmp4'
277+ NOTICE: CREATE TABLE / UNIQUE will create implicit index 'tmp4_a_key' for table 'tmp4'
278278CREATE TABLE tmp5 (a int, b int);
279279-- Insert rows into tmp2 (pktable)
280280INSERT INTO tmp2 values (1);
@@ -317,7 +317,7 @@ DROP TABLE tmp2;
317317-- Note: these tables are TEMP to avoid name conflicts when this test
318318-- is run in parallel with foreign_key.sql.
319319CREATE TEMP TABLE PKTABLE (ptest1 int PRIMARY KEY);
320- NOTICE: CREATE TABLE / ADD PRIMARY KEY will create implicit index 'pktable_pkey' for table 'pktable'
320+ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'pktable_pkey' for table 'pktable'
321321CREATE TEMP TABLE FKTABLE (ftest1 text);
322322-- This next should fail, because text=int does not exist
323323ALTER TABLE FKTABLE ADD FOREIGN KEY(ftest1) references pktable;
@@ -345,7 +345,7 @@ NOTICE: DROP TABLE implicitly drops referential integrity trigger from table "f
345345DROP TABLE fktable;
346346CREATE TEMP TABLE PKTABLE (ptest1 int, ptest2 text,
347347 PRIMARY KEY(ptest1, ptest2));
348- NOTICE: CREATE TABLE / ADD PRIMARY KEY will create implicit index 'pktable_pkey' for table 'pktable'
348+ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'pktable_pkey' for table 'pktable'
349349-- This should fail, because we just chose really odd types
350350CREATE TEMP TABLE FKTABLE (ftest1 cidr, ftest2 datetime);
351351ALTER TABLE FKTABLE ADD FOREIGN KEY(ftest1, ftest2) references pktable;
@@ -452,7 +452,7 @@ drop table atacc1;
452452create table atacc1 ( test int );
453453-- add a unique constraint
454454alter table atacc1 add constraint atacc_test1 unique (test);
455- NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
455+ NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
456456-- insert first value
457457insert into atacc1 (test) values (2);
458458-- should fail
@@ -462,7 +462,7 @@ ERROR: Cannot insert a duplicate key into unique index atacc_test1
462462insert into atacc1 (test) values (4);
463463-- try adding a unique oid constraint
464464alter table atacc1 add constraint atacc_oid1 unique(oid);
465- NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_oid1' for table 'atacc1'
465+ NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_oid1' for table 'atacc1'
466466drop table atacc1;
467467-- let's do one where the unique constraint fails when added
468468create table atacc1 ( test int );
@@ -471,7 +471,7 @@ insert into atacc1 (test) values (2);
471471insert into atacc1 (test) values (2);
472472-- add a unique constraint (fails)
473473alter table atacc1 add constraint atacc_test1 unique (test);
474- NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
474+ NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
475475ERROR: Cannot create unique index. Table contains non-unique values
476476insert into atacc1 (test) values (3);
477477drop table atacc1;
@@ -486,7 +486,7 @@ drop table atacc1;
486486create table atacc1 ( test int, test2 int);
487487-- add a unique constraint
488488alter table atacc1 add constraint atacc_test1 unique (test, test2);
489- NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
489+ NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc_test1' for table 'atacc1'
490490-- insert initial value
491491insert into atacc1 (test,test2) values (4,4);
492492-- should fail
@@ -499,9 +499,9 @@ insert into atacc1 (test,test2) values (5,5);
499499drop table atacc1;
500500-- lets do some naming tests
501501create table atacc1 (test int, test2 int, unique(test));
502- NOTICE: CREATE TABLE / ADD UNIQUE will create implicit index 'atacc1_test_key' for table 'atacc1'
502+ NOTICE: CREATE TABLE / UNIQUE will create implicit index 'atacc1_test_key' for table 'atacc1'
503503alter table atacc1 add unique (test2);
504- NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index 'atacc1_test2_key' for table 'atacc1'
504+ NOTICE: ALTER TABLE / UNIQUE will create implicit index 'atacc1_test2_key' for table 'atacc1'
505505-- should fail for @@ second one @@
506506insert into atacc1 (test2, test) values (3, 3);
507507insert into atacc1 (test2, test) values (2, 3);
0 commit comments