mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
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:
parent
6c96bd9411
commit
8ca5e13ee7
4 changed files with 32 additions and 0 deletions
6
mysql-test/suite/tokudb.alter_table/r/ai_aui.result
Normal file
6
mysql-test/suite/tokudb.alter_table/r/ai_aui.result
Normal 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;
|
6
mysql-test/suite/tokudb.alter_table/r/di_dui.result
Normal file
6
mysql-test/suite/tokudb.alter_table/r/di_dui.result
Normal 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;
|
10
mysql-test/suite/tokudb.alter_table/t/ai_aui.test
Normal file
10
mysql-test/suite/tokudb.alter_table/t/ai_aui.test
Normal 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;
|
10
mysql-test/suite/tokudb.alter_table/t/di_dui.test
Normal file
10
mysql-test/suite/tokudb.alter_table/t/di_dui.test
Normal 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;
|
Loading…
Add table
Reference in a new issue