mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
9e90516b35
git-svn-id: file:///svn/mysql/tests/mysql-test@48570 c7de825b-a66e-492c-adef-691d508d4ae1
34 lines
456 B
Text
Executable file
34 lines
456 B
Text
Executable file
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
|
|
DROP TABLE IF EXISTS foo;
|
|
set autocommit=off;
|
|
create table foo ( a int);
|
|
select * from foo;
|
|
a
|
|
lock tables foo write;
|
|
insert into foo values (1);
|
|
select * from foo;
|
|
a
|
|
1
|
|
rollback;
|
|
select * From foo;
|
|
a
|
|
insert into foo values (2);
|
|
select * from foo;
|
|
a
|
|
2
|
|
commit;
|
|
select * From foo;
|
|
a
|
|
2
|
|
insert into foo values (3);
|
|
select * from foo;
|
|
a
|
|
2
|
|
3
|
|
rollback;
|
|
select * From foo;
|
|
a
|
|
2
|
|
unlock tables;
|
|
set autocommit=on;
|
|
DROP TABLE foo;
|