You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/r/innodb-fk-warnings.result
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ show warnings;
44
44
Level Code Message
45
45
Warning 150 Alter table '`test`.`t2`' with foreign key constraint failed. There is no index in the referenced table where the referenced columns appear as the first columns near ' foreign key (b) references t2(b)'.
Warning 150 Alter table `test`.`t1` with foreign key constraint failed. Referenced table `test`.`t11` not found in the data dictionary near ' foreign key (f1) references t11(f1)'.
Warning 150 Alter table `mysqld.1`.`t1` with foreign key constraint failed. Referenced table `mysqld.1`.`t1` not found in the data dictionary near 'foreign key(b) references t1(a)'.
Warning 1215 Cannot add foreign key constraint for `t1`
87
87
drop table t1;
88
88
create table t1(a int not null primary key, b int, key(b)) engine=innodb;
89
89
alter table t1 add foreign key(a,b) references t1(a);
@@ -106,7 +106,7 @@ show warnings;
106
106
Level Code Message
107
107
Warning 150 Alter table `test`.`t1` with foreign key constraint failed. You have defined a SET NULL condition but column 'f1' is defined as NOT NULL in ' foreign key (f1) references t1(f1) on update set null' near ' on update set null'.
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb/r/innodb-fk.result
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ show warnings;
67
67
Level Code Message
68
68
Warning 150 Alter table `test`.`t2` with foreign key constraint failed. Referenced table `test`.`t3` not found in the data dictionary near ' FOREIGN KEY (f3) REFERENCES t3 (id) ON DELETE CASCADE'.
Copy file name to clipboardExpand all lines: mysql-test/suite/innodb_gis/r/point_basic.result
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1526,23 +1526,23 @@ show warnings;
1526
1526
Level Code Message
1527
1527
Warning 150 Alter table '`test`.`child`' with foreign key constraint failed. There is no index in the referenced table where the referenced columns appear as the first columns near 'FOREIGN KEY(p) REFERENCES parent(p)'.
Warning 1215 Cannot add foreign key constraint for `child`
1530
1530
ALTER TABLE parent DROP INDEX idx1;
1531
1531
ALTER TABLE child ADD FOREIGN KEY(p) REFERENCES parent(p);
1532
1532
Got one of the listed errors
1533
1533
show warnings;
1534
1534
Level Code Message
1535
1535
Warning 150 Alter table '`test`.`child`' with foreign key constraint failed. There is no index in the referenced table where the referenced columns appear as the first columns near 'FOREIGN KEY(p) REFERENCES parent(p)'.
Warning 1215 Cannot add foreign key constraint for `child`
1538
1538
ALTER TABLE child DROP INDEX idx2;
1539
1539
ALTER TABLE child ADD FOREIGN KEY(p) REFERENCES parent(p);
1540
1540
Got one of the listed errors
1541
1541
show warnings;
1542
1542
Level Code Message
1543
1543
Warning 150 Alter table '`test`.`child`' with foreign key constraint failed. There is only prefix index in the referenced table where the referenced columns appear as the first columns near 'FOREIGN KEY(p) REFERENCES parent(p)'.
0 commit comments