diff options
author | Sergey Vojtovich <svoj@sun.com> | 2009-08-11 18:05:25 +0500 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2009-08-11 18:05:25 +0500 |
commit | 7a77e3d05a55c16445e2bbf9bdfb1928dcf2bc27 (patch) | |
tree | 51c420178316e108b0380d5666aadf5881384c5a /mysql-test/suite/innodb/include/innodb-index.inc | |
parent | 21539aa01077eda1027fc90c1d575bd3affe75a7 (diff) | |
parent | 01dbe984f8987e6f198b8b31175c4c68e7072c49 (diff) | |
download | mariadb-git-7a77e3d05a55c16445e2bbf9bdfb1928dcf2bc27.tar.gz |
Merge mysql-5.1-innodb_plugin to mysql-5.1.
Diffstat (limited to 'mysql-test/suite/innodb/include/innodb-index.inc')
-rw-r--r-- | mysql-test/suite/innodb/include/innodb-index.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/include/innodb-index.inc b/mysql-test/suite/innodb/include/innodb-index.inc new file mode 100644 index 00000000000..37de3162abe --- /dev/null +++ b/mysql-test/suite/innodb/include/innodb-index.inc @@ -0,0 +1,26 @@ +--eval create table t1(a int not null, b int, c char(10), d varchar(20), primary key (a)) engine = innodb default charset=$charset +insert into t1 values (1,1,'ab','ab'),(2,2,'ac','ac'),(3,2,'ad','ad'),(4,4,'afe','afe'); +commit; +--error ER_DUP_ENTRY +alter table t1 add unique index (b); +insert into t1 values(8,9,'fff','fff'); +select * from t1; +show create table t1; +alter table t1 add index (b); +insert into t1 values(10,10,'kkk','iii'); +select * from t1; +select * from t1 force index(b) order by b; +explain select * from t1 force index(b) order by b; +show create table t1; +alter table t1 add unique index (c), add index (d); +insert into t1 values(11,11,'aaa','mmm'); +select * from t1; +select * from t1 force index(b) order by b; +select * from t1 force index(c) order by c; +select * from t1 force index(d) order by d; +explain select * from t1 force index(b) order by b; +explain select * from t1 force index(c) order by c; +explain select * from t1 force index(d) order by d; +show create table t1; +check table t1; +drop table t1; |