Refs Tokutek/ft-index#40 Add test for transactional case insensitive tables

This commit is contained in:
Yoni Fogel 2013-08-02 09:31:24 -07:00
parent ffbd732830
commit 8963e6431d
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,22 @@
drop table if exists t;
create table t (a varchar(50), primary key(a)) engine='tokudb';
insert into t values ("hello world");
select * from t;
a
hello world
begin;
select * from t;
a
hello world
update t set a="HELLO WORLD";
select * from t;
a
hello world
select * from t;
a
HELLO WORLD
rollback;
select * from t;
a
hello world
drop table t;

View file

@ -0,0 +1,35 @@
let $engine='tokudb';
--disable_warnings
drop table if exists t;
--enable_warnings
connect (conn1,localhost,root,,);
connection default;
eval create table t (a varchar(50), primary key(a)) engine=$engine;
insert into t values ("hello world");
select * from t;
begin;
connection conn1;
select * from t;
connection default;
update t set a="HELLO WORLD";
connection conn1;
select * from t;
connection default;
select * from t;
rollback;
connection conn1;
select * from t;
connection default;
connection default;
disconnect conn1;
drop table t;