mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
[t:4297], another test
git-svn-id: file:///svn/mysql/tests/mysql-test@41742 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
e458906d73
commit
49fcd90e6c
2 changed files with 73 additions and 0 deletions
40
mysql-test/suite/tokudb.bugs/r/xa-2.result
Normal file
40
mysql-test/suite/tokudb.bugs/r/xa-2.result
Normal file
|
@ -0,0 +1,40 @@
|
|||
drop table if exists t1;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
||||
xa begin 'a','ab';
|
||||
insert into t1 values (1);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
xa end 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
xa prepare 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
xa commit 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
xa begin 'a','ab';
|
||||
insert into t1 values (2);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
xa end 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
xa prepare 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
xa rollback 'a','ab';
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
drop table t1;
|
33
mysql-test/suite/tokudb.bugs/t/xa-2.test
Normal file
33
mysql-test/suite/tokudb.bugs/t/xa-2.test
Normal file
|
@ -0,0 +1,33 @@
|
|||
-- source include/have_tokudb.inc
|
||||
--source include/not_5_5.inc
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
|
||||
# test that simple xa commands work with TokuDB
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
||||
|
||||
xa begin 'a','ab';
|
||||
insert into t1 values (1);
|
||||
select * from t1;
|
||||
xa end 'a','ab';
|
||||
select * from t1;
|
||||
xa prepare 'a','ab';
|
||||
select * from t1;
|
||||
xa commit 'a','ab';
|
||||
select * from t1;
|
||||
|
||||
xa begin 'a','ab';
|
||||
insert into t1 values (2);
|
||||
select * from t1;
|
||||
xa end 'a','ab';
|
||||
select * from t1;
|
||||
xa prepare 'a','ab';
|
||||
select * from t1;
|
||||
xa rollback 'a','ab';
|
||||
select * from t1;
|
||||
|
||||
drop table t1;
|
||||
|
Loading…
Add table
Reference in a new issue