1
0
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:
serg@serg.mylan
2004-05-14 12:49:18 +02:00
parent a71771788e
commit 67f1c04ffc
3 changed files with 41 additions and 15 deletions

View File

@@ -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;