mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
955ef1b536
git-svn-id: file:///svn/mysql/tests/mysql-test@48560 c7de825b-a66e-492c-adef-691d508d4ae1
14 lines
413 B
Text
14 lines
413 B
Text
--source include/have_tokudb.inc
|
|
--source include/have_partition.inc
|
|
SET STORAGE_ENGINE='TokuDB';
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS foo;
|
|
--enable_warnings
|
|
SET SESSION tokudb_disable_slow_alter=1;
|
|
CREATE TABLE foo (a INT, b INT, PRIMARY KEY (a)) PARTITION BY HASH(a) PARTITIONS 2;
|
|
INSERT INTO foo VALUES (1,0),(2,0);
|
|
SHOW CREATE TABLE foo;
|
|
ALTER TABLE foo ADD KEY(b);
|
|
SHOW CREATE TABLE foo;
|
|
|
|
DROP TABLE foo;
|