mariadb/mysql-test/suite/tokudb.mvcc/r/mvcc-4.result
Zardosht Kasheff 8ea4ac6085 [t:2922] move mvcc tests
git-svn-id: file:///svn/mysql/tests/mysql-test@23629 c7de825b-a66e-492c-adef-691d508d4ae1
2010-09-08 18:49:31 +00:00

28 lines
734 B
Text
Executable file

SET STORAGE_ENGINE = 'tokudb';
set session transaction isolation level repeatable read;
# Establish connection conn1 (user = root)
DROP TABLE IF EXISTS foo;
set session transaction isolation level repeatable read;
create table foo (a int, b int, primary key (a))engine=TokuDB;
insert into foo values (1,1);
show create table foo;
Table Create Table
foo CREATE TABLE `foo` (
`a` int(11) NOT NULL DEFAULT '0',
`b` int(11) DEFAULT NULL,
PRIMARY KEY (`a`)
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
#should read (1,1)
select * from foo;
a b
1 1
begin;
replace into foo values (1,100), (2,200);
commit;
#should read (1,100),(2,200)
select * from foo;
a b
1 100
2 200
set session transaction isolation level serializable;
DROP TABLE foo;