1
drop table if exists t1, t2;
2
create table t1 (a int) engine=innodb;
12
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
13
insert t1 values (20);
15
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
22
xa start 'testa','testb';
23
insert t1 values (30);
25
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
26
xa end 'testa','testb';
28
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
29
create table t2 (a int);
30
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the IDLE state
31
xa start 'testa','testb';
32
ERROR XAE08: XAER_DUPID: The XID already exists
33
xa start 'testa','testb', 123;
34
ERROR XAE08: XAER_DUPID: The XID already exists
35
xa start 0x7465737462, 0x2030405060, 0xb;
36
insert t1 values (40);
37
xa end 'testb',' 0@P`',11;
38
xa prepare 'testb',0x2030405060,11;
40
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
42
formatID gtrid_length bqual_length data
44
xa prepare 'testa','testb';
46
formatID gtrid_length bqual_length data
49
xa commit 'testb',0x2030405060,11;
50
ERROR XAE04: XAER_NOTA: Unknown XID
51
xa rollback 'testa','testb';
52
xa start 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';
53
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1