mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
8ea4ac6085
git-svn-id: file:///svn/mysql/tests/mysql-test@23629 c7de825b-a66e-492c-adef-691d508d4ae1
28 lines
734 B
Text
Executable file
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;
|