summaryrefslogtreecommitdiff
path: root/mysql-test/t/xa.test
diff options
context:
space:
mode:
authorDmitry Shulga <Dmitry.Shulga@oracle.com>2012-03-15 15:10:57 +0600
committerDmitry Shulga <Dmitry.Shulga@oracle.com>2012-03-15 15:10:57 +0600
commit2b68b4bc1b7a450fcdd07412a3b05a91ecbfce8d (patch)
tree0a50caefd76d598d9153e571b2caaeab0551afde /mysql-test/t/xa.test
parent75c2eb6df323ae6f14bae944f5e88750de6da467 (diff)
downloadmariadb-git-2b68b4bc1b7a450fcdd07412a3b05a91ecbfce8d.tar.gz
This patch fixes the bug#13737343 (formerly known as 64374): XA TRANSACTIONS
AND SAVEPOINT. The bug was introduced by the patch for bug#11766752. This patch sets too strong condition on XA state for SAVEPOINT statement that disallows its execution during XA transaction. But since the statement SAVEPOINT doesn't imply implicit commit we can allow its handling during XA transaction. The patch explicitly check for transaction state against states XA_NOTR and XA_ACTIVE for which the handling of statement SAVEPOINT for XA transaction is allowed. mysql-test/t/xa.test: Testcase was adjusted for bug#13737343. Now SAVEPOINT is allowed for XA transactions in ACTIVE state.
Diffstat (limited to 'mysql-test/t/xa.test')
-rw-r--r--mysql-test/t/xa.test1
1 files changed, 0 insertions, 1 deletions
diff --git a/mysql-test/t/xa.test b/mysql-test/t/xa.test
index cb4345e9479..fe49d2d5e31 100644
--- a/mysql-test/t/xa.test
+++ b/mysql-test/t/xa.test
@@ -298,7 +298,6 @@ CREATE TABLE t1 (a INT) engine=InnoDB;
XA START 'a';
INSERT INTO t1 VALUES (1);
---error ER_XAER_RMFAIL
SAVEPOINT savep;
XA END 'a';