mariadb/mysql-test/suite/tokudb/r/mvcc-27.result
Rich Prohaska e776ba7701 refs #6440 move mvcc tests
git-svn-id: file:///svn/mysql/tests/mysql-test@55041 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-03 21:42:19 +00:00

36 lines
913 B
Text
Executable file

SET DEFAULT_STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root)
DROP TABLE IF EXISTS foo;
create table foo (a int, b varchar(100), primary key (a))engine=TokudB;
# should return nothing
select * from foo;
a b
begin;
set session transaction isolation level repeatable read;
select * from foo;
a b
replace into foo values (1,"G");
replace into foo values (1,"GA");
replace into foo values (1,"GAR");
replace into foo values (1,"GARB");
replace into foo values (1,"GARBA");
replace into foo values (1,"GARBAG");
replace into foo values (1,"GARBAGE");
replace into foo values (1,"a");
# should return one element,
select * from foo;
a b
1 a
optimize table foo;
Table Op Msg_type Msg_text
test.foo optimize status OK
# should return nothing
select * from foo;
a b
commit;
# should return one element,
select * from foo;
a b
1 a
set session transaction isolation level serializable;
DROP TABLE foo;