mariadb/mysql-test/suite/tokudb.bugs/t/xa-5.test
Zardosht Kasheff 78eec833f3 [t:4297], add tests for 5.5
git-svn-id: file:///svn/mysql/tests/mysql-test@41745 c7de825b-a66e-492c-adef-691d508d4ae1
2012-04-10 17:31:29 +00:00

32 lines
575 B
Text

-- source include/have_tokudb.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;