1
# Tests a number of things related to transactions:
3
# 1. Interaction of more than one engine in a transaction
4
# 2. Correct commit and rollback behaviour
5
# 3. XA protocol communication and recovery
8
DROP TABLE IF EXISTS t1_trx, t1_non_trx;
14
k VARCHAR(10) NOT NULL
15
, v VARCHAR(10) NOT NULL
19
CREATE TEMPORARY TABLE t1_non_trx (
20
k VARCHAR(10) NOT NULL
21
, v VARCHAR(10) NOT NULL
27
INSERT INTO t1_trx VALUES ('key1','value1');
28
INSERT INTO t1_trx VALUES ('key2','value2');
30
INSERT INTO t1_non_trx VALUES ('key1','value1');
31
INSERT INTO t1_non_trx VALUES ('key2','value2');
35
--echo Expected warning about non-trx data changes not being rolled back
38
SELECT * FROM t1_non_trx;
42
INSERT INTO t1_trx VALUES ('key1','value1');
43
INSERT INTO t1_trx VALUES ('key2','value2');
45
SELECT t1_trx.k, t1_trx.v
47
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
51
SELECT t1_trx.k, t1_trx.v
53
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
57
DROP TABLE t1_non_trx;