mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
45 lines
426 B
Text
45 lines
426 B
Text
|
SET STORAGE_ENGINE = 'tokudb';
|
||
|
DROP TABLE IF EXISTS foo;
|
||
|
create table foo ( a int);
|
||
|
insert into foo values (1),(2),(22),(3),(4);
|
||
|
select * from foo;
|
||
|
a
|
||
|
1
|
||
|
2
|
||
|
22
|
||
|
3
|
||
|
4
|
||
|
begin;
|
||
|
delete from foo;
|
||
|
select * from foo;
|
||
|
a
|
||
|
rollback;
|
||
|
select * from foo;
|
||
|
a
|
||
|
1
|
||
|
2
|
||
|
22
|
||
|
3
|
||
|
4
|
||
|
insert into foo values (1),(2),(22),(3),(4);
|
||
|
select * from foo;
|
||
|
a
|
||
|
1
|
||
|
2
|
||
|
22
|
||
|
3
|
||
|
4
|
||
|
1
|
||
|
2
|
||
|
22
|
||
|
3
|
||
|
4
|
||
|
begin;
|
||
|
delete from foo;
|
||
|
select * from foo;
|
||
|
a
|
||
|
commit;
|
||
|
select * from foo;
|
||
|
a
|
||
|
DROP TABLE foo;
|