Commit ba315739 authored by Rich Prohaska's avatar Rich Prohaska

tokutek/mysql56#24 always set default storage engine to tokudb in the cardinality tests

parent 6a98b2de
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, c int, d int, key(a), key(b), key(c)); create table tt (a int, b int, c int, d int, key(a), key(b), key(c));
insert into tt values (0,0,0,0),(1,0,0,0),(2,0,1,0),(3,0,1,0); insert into tt values (0,0,0,0),(1,0,0,0),(2,0,1,0),(3,0,1,0);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, c int, primary key(a)); create table tt (a int, b int, c int, primary key(a));
insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1); insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, c int, key(b), key(c), primary key(a)); create table tt (a int, b int, c int, key(b), key(c), primary key(a));
insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1); insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, c int, key(b), key(c), primary key(a)); create table tt (a int, b int, c int, key(b), key(c), primary key(a));
insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1); insert into tt values (1,0,0),(2,0,0),(3,0,1),(4,0,1);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int); create table tt (a int, b int);
insert into tt values (1,0),(2,1),(3,2),(4,3); insert into tt values (1,0),(2,1),(3,2),(4,3);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, primary key(a)); create table tt (a int, b int, primary key(a));
insert into tt values (1,0),(2,1),(3,2),(4,3); insert into tt values (1,0),(2,1),(3,2),(4,3);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, primary key(a,b)); create table tt (a int, b int, primary key(a,b));
insert into tt values (0,0),(0,1),(1,0),(1,1); insert into tt values (0,0),(0,1),(1,0),(1,1);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, primary key(a), key(b)); create table tt (a int, b int, primary key(a), key(b));
insert into tt values (4*0,4*0+1),(4*0+1,4*0+2),(4*0+2,4*0+3),(4*0+3,4*0+4); insert into tt values (4*0,4*0+1),(4*0+1,4*0+2),(4*0+2,4*0+3),(4*0+3,4*0+4);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, key(b)); create table tt (a int, b int, key(b));
insert into tt values (1,0),(2,1),(3,2),(4,3); insert into tt values (1,0),(2,1),(3,2),(4,3);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, key(a,b)); create table tt (a int, b int, key(a,b));
insert into tt values (0,0),(0,1),(1,0),(1,1); insert into tt values (0,0),(0,1),(1,0),(1,1);
......
set default_storage_engine='tokudb';
drop table if exists tt; drop table if exists tt;
create table tt (a int, b int, unique key(a)); create table tt (a int, b int, unique key(a));
insert into tt values (1,0),(2,1),(3,2),(4,3); insert into tt values (1,0),(2,1),(3,2),(4,3);
......
# test that add and drop works # test that add and drop works
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
# test that add index keeps cardinality for older indexes # test that add index keeps cardinality for older indexes
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
# test that add index keeps cardinality for older indexes # test that add index keeps cardinality for older indexes
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
# test that add index keeps cardinality for older indexes # test that add index keeps cardinality for older indexes
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists tt; drop table if exists tt;
......
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