mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Reverting test file changes from r2855
This commit is contained in:
@ -46,6 +46,13 @@ t1 CREATE TABLE `t1` (
|
|||||||
KEY `d2` (`d`),
|
KEY `d2` (`d`),
|
||||||
KEY `b` (`b`)
|
KEY `b` (`b`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||||
|
CREATE TABLE `t1#1`(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
|
alter table t1 add unique index (c), add index (d);
|
||||||
|
ERROR HY000: Table 'test.t1#1' already exists
|
||||||
|
rename table `t1#1` to `t1#2`;
|
||||||
|
alter table t1 add unique index (c), add index (d);
|
||||||
|
ERROR HY000: Table 'test.t1#2' already exists
|
||||||
|
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;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
|
@ -17,6 +17,16 @@ show create table t1;
|
|||||||
alter table t1 add index (b);
|
alter table t1 add index (b);
|
||||||
show create table t1;
|
show create table t1;
|
||||||
|
|
||||||
|
# Check how existing tables interfere with temporary tables.
|
||||||
|
CREATE TABLE `t1#1`(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
--error 156
|
||||||
|
alter table t1 add unique index (c), add index (d);
|
||||||
|
rename table `t1#1` to `t1#2`;
|
||||||
|
--error 156
|
||||||
|
alter table t1 add unique index (c), add index (d);
|
||||||
|
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;
|
||||||
|
Reference in New Issue
Block a user