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
This commit is contained in:
Rich Prohaska 2012-07-16 21:51:53 +00:00
parent 6c96bd9411
commit 8ca5e13ee7
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,6 @@
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;

View file

@ -0,0 +1,6 @@
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;

View file

@ -0,0 +1,10 @@
# 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;

View file

@ -0,0 +1,10 @@
# 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;