Commit 3852e4b0 authored by Zardosht Kasheff's avatar Zardosht Kasheff

refs #5794, add result file and a test for read uncommitted

git-svn-id: file:///svn/mysql/tests/mysql-test@52984 c7de825b-a66e-492c-adef-691d508d4ae1
parent 377e1001
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS toku1, toku2;
create table toku1 (a int) engine=TokuDB;
create table toku2 (a int) engine=TokuDB;
insert into toku1 values (1),(2),(3);
insert into toku2 values (1),(2),(3);
set session transaction isolation level READ UNCOMMITTED;
begin;
insert into toku2 select * from toku1;
set session transaction isolation level READ UNCOMMITTED;
insert into toku1 values (4);
commit;
select * from toku2;
a
1
2
3
1
2
3
commit;
select * from toku1;
a
1
2
3
4
DROP TABLE toku1, toku2;
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS toku1, toku2;
create table toku1 (a int) engine=TokuDB;
create table toku2 (a int) engine=TokuDB;
insert into toku1 values (1),(2),(3);
insert into toku2 values (1),(2),(3);
set session transaction isolation level READ COMMITTED;
begin;
insert into toku2 select * from toku1;
set session transaction isolation level READ COMMITTED;
insert into toku1 values (4);
commit;
select * from toku2;
a
1
2
3
1
2
3
commit;
select * from toku1;
a
1
2
3
4
DROP TABLE toku1, toku2;
--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS toku1, toku2;
--enable_warnings
create table toku1 (a int) engine=TokuDB;
create table toku2 (a int) engine=TokuDB;
insert into toku1 values (1),(2),(3);
insert into toku2 values (1),(2),(3);
connect (conn1,localhost,root,,);
connection default;
set session transaction isolation level READ UNCOMMITTED;
begin;
insert into toku2 select * from toku1;
connection conn1;
set session transaction isolation level READ UNCOMMITTED;
insert into toku1 values (4);
connection default;
commit;
select * from toku2;
connection conn1;
commit;
select * from toku1;
connection default;
disconnect conn1;
# Final cleanup.
DROP TABLE toku1, toku2;
\ No newline at end of file
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