571
eval create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=$engine_type;
572
insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
573
LOCK TABLES t1 WRITE;
575
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
581
eval create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(30),primary key (id,id2),index index_id3 (id3)) engine=$engine_type;
582
insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
583
LOCK TABLES t1 WRITE;
586
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
588
insert ignore into t1 values (100,1,2,'D'),(1,1,99,'D');
590
select id,id3 from t1;
595
568
# Test prefix key
597
570
eval create table t1 (a char(20), unique (a(5))) engine=$engine_type;