Commit 8ca5e13e authored by Rich Prohaska's avatar Rich Prohaska

refs #5258 add mysql tests for the add key uniq key bug

git-svn-id: file:///svn/mysql/tests/mysql-test@45779 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6c96bd94
set storage_engine='tokudb';
drop table if exists t;
create table t (a int primary key, b int, c int);
set session tokudb_disable_slow_alter=1;
alter table t add key(b), add unique key(c);
drop table t;
set storage_engine='tokudb';
drop table if exists t;
create table t (a int, b int, c int, primary key(a), key(b), unique key(c));
set session tokudb_disable_slow_alter=1;
alter table t drop key b, drop key c;
drop table t;
# ensure that we can add a key and a unique key simultaneously
--source include/have_tokudb.inc
set storage_engine='tokudb';
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (a int primary key, b int, c int);
set session tokudb_disable_slow_alter=1;
alter table t add key(b), add unique key(c);
drop table t;
\ No newline at end of file
# ensure that we can drop a key and a unique key simultaneously
--source include/have_tokudb.inc
set storage_engine='tokudb';
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (a int, b int, c int, primary key(a), key(b), unique key(c));
set session tokudb_disable_slow_alter=1;
alter table t drop key b, drop key c;
drop table t;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment