mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
9e90516b35
git-svn-id: file:///svn/mysql/tests/mysql-test@48570 c7de825b-a66e-492c-adef-691d508d4ae1
20 lines
608 B
Text
20 lines
608 B
Text
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
|
|
DROP TABLE IF EXISTS foo,bar;
|
|
create table foo (a int, b int, key(b,a), primary key (a))engine=TokuDB;
|
|
create table bar (a bigint)engine=TokuDB;
|
|
alter table foo drop index b;
|
|
alter table bar add index (a);
|
|
show create table foo;
|
|
Table Create Table
|
|
foo CREATE TABLE `foo` (
|
|
`a` int(11) NOT NULL DEFAULT '0',
|
|
`b` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`a`)
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
show create table bar;
|
|
Table Create Table
|
|
bar CREATE TABLE `bar` (
|
|
`a` bigint(20) DEFAULT NULL,
|
|
KEY `a` (`a`)
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
|
DROP TABLE foo,bar;
|