mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
merged
This commit is contained in:
@@ -1082,6 +1082,16 @@ create table t2 (id int(11) not null, id2 int(11) not null, unique (id,id2),cons
|
||||
show create table t2;
|
||||
drop table t2;
|
||||
|
||||
create table t2 (id int(11) not null auto_increment, id2 int(11) not null, constraint t1_id_fk foreign key (id) references t1 (id), primary key (id), index (id,id2)) engine = innodb;
|
||||
show create table t2;
|
||||
drop table t2;
|
||||
|
||||
create table t2 (id int(11) not null auto_increment, id2 int(11) not null, constraint t1_id_fk foreign key (id) references t1 (id)) engine= innodb;
|
||||
show create table t2;
|
||||
alter table t2 add index id_test (id), add index id_test2 (id,id2);
|
||||
show create table t2;
|
||||
drop table t2;
|
||||
|
||||
# Test error handling
|
||||
--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;
|
||||
|
||||
Reference in New Issue
Block a user