mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
better fix for bug#3749 - do not consider already removed keys in key removal process
This commit is contained in:
@@ -1086,4 +1086,14 @@ drop table t2;
|
||||
--error 1005
|
||||
create table t2 (id int(11) not null, id2 int(11) not null, constraint t1_id_fk foreign key (id2,id) references t1 (id)) engine = innodb;
|
||||
|
||||
drop table t1;
|
||||
# bug#3749
|
||||
|
||||
create table t2 (a int auto_increment primary key, b int, index(b), foreign key (b) references t1(id), unique(b)) engine=innodb;
|
||||
show create table t2;
|
||||
drop table t2;
|
||||
create table t2 (a int auto_increment primary key, b int, foreign key (b) references t1(id), foreign key (b) references t1(id), unique(b)) engine=innodb;
|
||||
show create table t2;
|
||||
drop table t2, t1;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user