mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
branches/zip:
Remove a statement that causes the innodb-index test to fail. The change in behavior was introduced in MySQL BZR-r2738. Suggested by: Marko
This commit is contained in:
@@ -69,8 +69,6 @@ t1 CREATE TABLE `t1` (
|
|||||||
explain select * from t1 force index(c) order by c;
|
explain select * from t1 force index(c) order by c;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL c 10 NULL 4
|
1 SIMPLE t1 index NULL c 10 NULL 4
|
||||||
drop index c on t1;
|
|
||||||
ERROR 42000: This table type requires a primary key
|
|
||||||
alter table t1 add primary key (a), drop index c;
|
alter table t1 add primary key (a), drop index c;
|
||||||
show create table t1;
|
show create table t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
|
@@ -30,8 +30,6 @@ drop table `t1#2`;
|
|||||||
alter table t1 add unique index (c), add index (d);
|
alter table t1 add unique index (c), add index (d);
|
||||||
show create table t1;
|
show create table t1;
|
||||||
explain select * from t1 force index(c) order by c;
|
explain select * from t1 force index(c) order by c;
|
||||||
--error ER_REQUIRES_PRIMARY_KEY
|
|
||||||
drop index c on t1;
|
|
||||||
alter table t1 add primary key (a), drop index c;
|
alter table t1 add primary key (a), drop index c;
|
||||||
show create table t1;
|
show create table t1;
|
||||||
--error ER_MULTIPLE_PRI_KEY
|
--error ER_MULTIPLE_PRI_KEY
|
||||||
|
Reference in New Issue
Block a user