~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/include/innodb-index.inc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--eval create table t1(a int not null, b int, c char(10), d varchar(20), primary key (a)) engine = innodb default charset=$charset
2
 
insert into t1 values (1,1,'ab','ab'),(2,2,'ac','ac'),(3,2,'ad','ad'),(4,4,'afe','afe');
3
 
commit;
4
 
--error ER_DUP_ENTRY
5
 
alter table t1 add unique index (b);
6
 
insert into t1 values(8,9,'fff','fff');
7
 
select * from t1;
8
 
show create table t1;
9
 
alter table t1 add index (b);
10
 
insert into t1 values(10,10,'kkk','iii');
11
 
select * from t1;
12
 
select * from t1 force index(b) order by b;
13
 
explain select * from t1 force index(b) order by b;
14
 
show create table t1;
15
 
alter table t1 add unique index (c), add index (d);
16
 
insert into t1 values(11,11,'aaa','mmm');
17
 
select * from t1;
18
 
select * from t1 force index(b) order by b;
19
 
select * from t1 force index(c) order by c;
20
 
select * from t1 force index(d) order by d;
21
 
explain select * from t1 force index(b) order by b;
22
 
explain select * from t1 force index(c) order by c;
23
 
explain select * from t1 force index(d) order by d;
24
 
show create table t1;
25
 
check table t1;
26
 
drop table t1;