Commit 9e90516b authored by Rich Prohaska's avatar Rich Prohaska

refs #5545 use default_storage_engine in mysql tokudb.bugs tests

git-svn-id: file:///svn/mysql/tests/mysql-test@48570 c7de825b-a66e-492c-adef-691d508d4ae1
parent b7a93865
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a blob, key (a(3)))engine=tokudb; create table foo (a blob, key (a(3)))engine=tokudb;
insert into foo value ("asfdasdfasdfasdf"); insert into foo value ("asfdasdfasdfasdf");
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b blob)engine=tokudb; create table foo (a int, b blob)engine=tokudb;
insert into foo values (1,"one"); insert into foo values (1,"one");
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c int, clustering key (a))engine=tokudb; create table foo (a int, b int, c int, clustering key (a))engine=tokudb;
insert into foo values (1,1,1),(1,2,2),(1,3,3),(2,1,4),(2,2,5),(2,3,6),(3,1,7),(3,2,8); insert into foo values (1,1,1),(1,2,2),(1,3,3),(2,1,4),(2,2,5),(2,3,6),(3,1,7),(3,2,8);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c blob, primary key (a))engine=tokudb; create table foo (a int, b int, c blob, primary key (a))engine=tokudb;
insert into foo values (1,10,"100"); insert into foo values (1,10,"100");
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, primary key (a))engine=tokudb; create table foo (a int, b int, primary key (a))engine=tokudb;
insert into foo values (1,10),(2,2),(3,300),(4,40); insert into foo values (1,10),(2,2),(3,300),(4,40);
......
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session transaction isolation level serializable; set session transaction isolation level serializable;
create table foo ( a double, b double, c double, primary key (a,b)); create table foo ( a double, b double, c double, primary key (a,b));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo ( a int, b int, c int); create table foo ( a int, b int, c int);
insert into foo values (1,1,1),(1,2,2),(1,3,3),(2,1,1),(2,2,2),(2,3,3),(3,1,1),(3,2,2),(3,3,3); insert into foo values (1,1,1),(1,2,2),(1,3,3),(2,1,1),(2,2,2),(2,3,3),(3,1,1),(3,2,2),(3,3,3);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo ( a int, b bigint auto_increment, primary key (a,b)); create table foo ( a int, b bigint auto_increment, primary key (a,b));
insert into foo values (1,4444000000); insert into foo values (1,4444000000);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session unique_checks=off; set session unique_checks=off;
create table foo (a int, b int, c int, primary key (a), key(b)); create table foo (a int, b int, c int, primary key (a), key(b));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo ( a int); create table foo ( a int);
insert into foo values (1),(2),(22),(3),(4); insert into foo values (1),(2),(22),(3),(4);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set autocommit=off; set autocommit=off;
create table foo ( a int); create table foo ( a int);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session transaction isolation level read uncommitted; set session transaction isolation level read uncommitted;
create table foo (a int) engine=TokuDB; create table foo (a int) engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c int, d int, primary key (a), key (b), clustering key (c)) engine=TokuDB; create table foo (a int, b int, c int, d int, primary key (a), key (b), clustering key (c)) engine=TokuDB;
insert into foo values (1,10,100,1000),(2,20,200,2000),(3,30,300,3000),(4,40,400,4000),(5,50,500,5000); insert into foo values (1,10,100,1000),(2,20,200,2000),(3,30,300,3000),(4,40,400,4000),(5,50,500,5000);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS test_bug; DROP TABLE IF EXISTS test_bug;
create table test_bug ( create table test_bug (
id INT NOT NULL PRIMARY KEY, id INT NOT NULL PRIMARY KEY,
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a char (255), primary key (a))charset=utf8; create table foo (a char (255), primary key (a))charset=utf8;
insert into foo values (repeat('A', 255)); insert into foo values (repeat('A', 255));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t1,t2; DROP TABLE IF EXISTS t1,t2;
# #
# Bug#50843: Filesort used instead of clustered index led to # Bug#50843: Filesort used instead of clustered index led to
......
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session transaction isolation level read committed; set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a)); create table foo ( a int, b int, primary key (a));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c int, primary key (a), clustering key (b)); create table foo (a int, b int, c int, primary key (a), clustering key (b));
replace into foo values (1,10,100), (2,20,200), (1,10,1000); replace into foo values (1,10,100), (2,20,200), (1,10,1000);
......
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo, bar; DROP TABLE IF EXISTS foo, bar;
set session transaction isolation level read committed; set session transaction isolation level read committed;
create table foo ( a int, b int, primary key (a)); create table foo ( a int, b int, primary key (a));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c int, primary key (a), key (b)); create table foo (a int, b int, c int, primary key (a), key (b));
insert into foo values (1,100,1),(2,20,2),(3,300,3),(4,4,4); insert into foo values (1,100,1),(2,20,2),(3,300,3),(4,4,4);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_prelock_empty=0; set session tokudb_prelock_empty=0;
create table foo (a int, b int, c int, d int, primary key (a), key (b), clustering key (c)); create table foo (a int, b int, c int, d int, primary key (a), key (b), clustering key (c));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_prelock_empty=0; set session tokudb_prelock_empty=0;
create table foo (a int, b int, c int, primary key (a), clustering key (b)); create table foo (a int, b int, c int, primary key (a), clustering key (b));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_disable_slow_alter=ON; set session tokudb_disable_slow_alter=ON;
create table foo (a int NOT NULL, b int, c int)engine=TokuDB; create table foo (a int NOT NULL, b int, c int)engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set tokudb_disable_slow_alter=ON; set tokudb_disable_slow_alter=ON;
CREATE TABLE `foo` ( CREATE TABLE `foo` (
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_disable_slow_alter=ON; set session tokudb_disable_slow_alter=ON;
create table foo (a blob, clustering key (a(3)))engine=TokuDB; create table foo (a blob, clustering key (a(3)))engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_prelock_empty=off; set session tokudb_prelock_empty=off;
create table foo (a int, b bigint, primary key (a))engine=TokuDB; create table foo (a int, b bigint, primary key (a))engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
set session tokudb_read_buf_size=5000; set session tokudb_read_buf_size=5000;
create table foo (a varchar(300), b text)engine=TokuDB; create table foo (a varchar(300), b text)engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, primary key (a))engine=TokuDB; create table foo (a int, b int, primary key (a))engine=TokuDB;
insert into foo values (1,10),(2,20),(3,30),(4,40),(5,50); insert into foo values (1,10),(2,20),(3,30),(4,40),(5,50);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
drop table if exists t1; drop table if exists t1;
create table t1 ( create table t1 (
c1 int not null auto_increment primary key, c2 varchar(128) not null , c3 int, index key_c2 (c2) c1 int not null auto_increment primary key, c2 varchar(128) not null , c3 int, index key_c2 (c2)
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
CREATE TABLE t1(c1 TINYINT NOT NULL, c2 TINYINT NULL, c3 TINYINT NULL, PRIMARY KEY (c1), UNIQUE (c2)) engine=TokuDB; CREATE TABLE t1(c1 TINYINT NOT NULL, c2 TINYINT NULL, c3 TINYINT NULL, PRIMARY KEY (c1), UNIQUE (c2)) engine=TokuDB;
INSERT INTO t1 (c1,c2,c3) VALUES(10,14,10); INSERT INTO t1 (c1,c2,c3) VALUES(10,14,10);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
create table t1 ( create table t1 (
c1 int not null auto_increment primary key, c2 varchar(128) not null , c3 int, unique index unique_c2 (c2) c1 int not null auto_increment primary key, c2 varchar(128) not null , c3 int, unique index unique_c2 (c2)
......
set storage_engine='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
CREATE TABLE `t2` ( CREATE TABLE `t2` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
......
set storage_engine='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
CREATE TABLE `t2` ( CREATE TABLE `t2` (
`c1` int(11) NOT NULL, `c1` int(11) NOT NULL,
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo, bar; DROP TABLE IF EXISTS foo, bar;
create table foo (a int, b int, primary key (a), key (b))engine=tokudb; create table foo (a int, b int, primary key (a), key (b))engine=tokudb;
create table bar like foo; create table bar like foo;
......
*** Bug #23945 *** *** Bug #23945 ***
SET STORAGE_ENGINE = tokudb; SET DEFAULT_STORAGE_ENGINE = tokudb;
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
SET AUTOCOMMIT = 1; SET AUTOCOMMIT = 1;
CREATE TABLE t1 (PRIMARY KEY (a)) SELECT 1 AS a UNION ALL SELECT 1; CREATE TABLE t1 (PRIMARY KEY (a)) SELECT 1 AS a UNION ALL SELECT 1;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (c1 INT PRIMARY KEY); CREATE TABLE t1 (c1 INT PRIMARY KEY);
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t; DROP TABLE IF EXISTS t;
CREATE TABLE t (r INT, s INT, t BIGINT, PRIMARY KEY (r, s)); CREATE TABLE t (r INT, s INT, t BIGINT, PRIMARY KEY (r, s));
INSERT INTO t VALUES (1,2,3),(4,5,6); INSERT INTO t VALUES (1,2,3),(4,5,6);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b bigint, c int, primary key (a))engine=TokuDB; create table foo (a int, b bigint, c int, primary key (a))engine=TokuDB;
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600); insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
select DB, command, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
DB command state info DB command state info
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
# should see nothing # should see nothing
select DB, command, state, info from information_schema.processlist; select DB, command, state, info from information_schema.processlist;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS fooff, foo, bar; DROP TABLE IF EXISTS fooff, foo, bar;
create table bar (a int); create table bar (a int);
insert into bar values(1),(2),(3); insert into bar values(1),(2),(3);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS t1,t2; DROP TABLE IF EXISTS t1,t2;
create table t1 (a int, b int, c int, key(a), key(b)); create table t1 (a int, b int, c int, key(a), key(b));
DROP TABLE t1; DROP TABLE t1;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
create table foo (a int, b int); create table foo (a int, b int);
create table bar (a int, key(a)); create table bar (a int, key(a));
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
set session tokudb_disable_slow_alter=ON; set session tokudb_disable_slow_alter=ON;
create table foo (a bigint, b bigint); create table foo (a bigint, b bigint);
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
create table foo (a int, b int, key(b,a), primary key (a))engine=TokuDB; create table foo (a int, b int, key(b,a), primary key (a))engine=TokuDB;
create table bar (a bigint)engine=TokuDB; create table bar (a bigint)engine=TokuDB;
......
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
create table foo (a int, b int, c int, primary key (a,b)); create table foo (a int, b int, c int, primary key (a,b));
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600); insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
--source include/have_tokudb.inc --source include/have_tokudb.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS test_bug; DROP TABLE IF EXISTS test_bug;
......
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1,t2; DROP TABLE IF EXISTS t1,t2;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
--source include/have_tokudb.inc --source include/have_tokudb.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo, bar; DROP TABLE IF EXISTS foo, bar;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
--source include/not_5_5.inc --source include/not_5_5.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#test update multiple #test update multiple
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#test update multiple #test update multiple
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# is not resized # is not resized
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# test simple MVCC, that a transaction does not read something committed after it # test simple MVCC, that a transaction does not read something committed after it
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set session transaction isolation level repeatable read; set session transaction isolation level repeatable read;
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
drop table if exists t1; drop table if exists t1;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
set storage_engine='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
--enable_warnings --enable_warnings
......
set storage_engine='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
--enable_warnings --enable_warnings
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo, bar; DROP TABLE IF EXISTS foo, bar;
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
# --source include/have_innodb.inc # --source include/have_innodb.inc
# SET STORAGE_ENGINE = InnoDB; # SET DEFAULT_STORAGE_ENGINE = InnoDB;
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = tokudb; SET DEFAULT_STORAGE_ENGINE = tokudb;
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t; DROP TABLE IF EXISTS t;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS fooff, foo, bar; DROP TABLE IF EXISTS fooff, foo, bar;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--source include/not_5_5.inc --source include/not_5_5.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--source include/not_5_5.inc --source include/not_5_5.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--source include/not_5_5.inc --source include/not_5_5.inc
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1,t2; DROP TABLE IF EXISTS t1,t2;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
--source include/have_tokudb.inc --source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo,bar; DROP TABLE IF EXISTS foo,bar;
......
# ticket 895 is a query optimization problem with the primary key # ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS foo; DROP TABLE IF EXISTS foo;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Record inconsistency. # Record inconsistency.
# #
# #
SET STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
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