Commit 5b8dfeac authored by Rich Prohaska's avatar Rich Prohaska

Tokutek/mysql56#71 run mysql suite tokudb.bugs without tokudb as the default storage engine

parent d72b161f
set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
create table t (u tinytext, v text); create table t (u tinytext, v text);
insert into t values ('hi', 'there'); insert into t values ('hi', 'there');
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
# 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
--echo # Establish connection conn1 (user = root) --echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,); connect (conn1,localhost,root,,);
SET DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
......
# 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
--source include/not_5_5.inc --source include/not_5_5.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
......
source include/have_tokudb.inc;
set default_storage_engine='tokudb';
# test that the query planner chooses a covering index over a non-covering index with the same # test that the query planner chooses a covering index over a non-covering index with the same
# record cost # record cost
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
# #
# Record inconsistency. # Record inconsistency.
# #
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
# #
#test update multiple #test update multiple
# #
......
#--source include/have_tokudb.inc --source include/have_tokudb.inc
# #
#test update multiple #test update multiple
# #
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set session transaction isolation level repeatable read; set session transaction isolation level repeatable read;
......
source include/have_tokudb.inc;
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
......
source include/have_tokudb.inc;
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t2;
......
source include/have_tokudb.inc;
let $engine='tokudb'; let $engine='tokudb';
--disable_warnings --disable_warnings
......
# test that query planner selects range scan rather than full scan of the primary key # test that query planner selects range scan rather than full scan of the primary key
# see ticket #5733 # see ticket #5733
source include/have_tokudb.inc;
source include/have_innodb.inc; source include/have_innodb.inc;
disable_warnings; disable_warnings;
......
source include/have_tokudb.inc;
# verify that the tokudb version string is appended to the mysql version # verify that the tokudb version string is appended to the mysql version
replace_regex /[0-9]+\.[0-9]+\.[0-9]+[a-z0-9\-\.]*-tokudb-.*/NA.NA.NA-TOKUDB-NA/; replace_regex /[0-9]+\.[0-9]+\.[0-9]+[a-z0-9\-\.]*-tokudb-.*/NA.NA.NA-TOKUDB-NA/;
select version(); select version();
--source include/have_tokudb.inc
use test; use test;
drop table if exists site; drop table if exists site;
......
# this test verifies that column expansion of a tinytext to text column retains the correct data # this test verifies that column expansion of a tinytext to text column retains the correct data
--source include/have_tokudb.inc --source include/have_tokudb.inc
set default_storage_engine='tokudb';
--disable_warnings --disable_warnings
drop table if exists t; drop table if exists t;
--enable_warnings --enable_warnings
......
# 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
--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,,);
......
--source include/have_tokudb.inc
let $engine='tokudb'; let $engine='tokudb';
--disable_warnings --disable_warnings
......
# 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 DEFAULT_STORAGE_ENGINE = 'tokudb'; SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings --disable_warnings
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
source include/have_tokudb.inc; source include/have_tokudb.inc;
source include/have_partition.inc; source include/have_partition.inc;
set default_storage_engine='tokudb';
# capture the datadir # capture the datadir
let $MYSQLD_DATADIR= `SELECT @@datadir`; let $MYSQLD_DATADIR= `SELECT @@datadir`;
...@@ -32,7 +33,7 @@ EOF ...@@ -32,7 +33,7 @@ EOF
--enable_reconnect --enable_reconnect
--source include/wait_until_connected_again.inc --source include/wait_until_connected_again.inc
create table tc (a int, b int, c int, primary key(a), key(b)) partition by hash(a) partitions 2; create table tc (a int, b int, c int, primary key(a), key(b)) engine=tokudb partition by hash(a) partitions 2;
# check that the tokudb meta data gets dropped when the table is dropped # check that the tokudb meta data gets dropped when the table is dropped
select dictionary_name from information_schema.tokudb_file_map; select dictionary_name from information_schema.tokudb_file_map;
......
# verify that we can drop simple tokudb tables created in tokudb 6.6.8 # verify that we can drop simple tokudb tables created in tokudb 6.6.8
source include/have_tokudb.inc; source include/have_tokudb.inc;
set default_storage_engine='tokudb';
# capture the datadir # capture the datadir
let $MYSQLD_DATADIR= `SELECT @@datadir`; let $MYSQLD_DATADIR= `SELECT @@datadir`;
......
-- source include/have_innodb.inc --source include/have_innodb.inc
-- source include/have_tokudb.inc --source include/have_tokudb.inc
--disable_warnings --disable_warnings
drop table if exists t1, t2; drop table if exists t1, t2;
......
-- source include/have_tokudb.inc --source include/have_tokudb.inc
--source include/not_5_5.inc --source include/not_5_5.inc
--disable_warnings --disable_warnings
......
-- source include/have_tokudb.inc --source include/have_tokudb.inc
--source include/have_debug.inc --source include/have_debug.inc
--disable_warnings --disable_warnings
......
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