summaryrefslogtreecommitdiff
path: root/mysql-test/main/xa.result
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-05-10 11:42:04 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-05-10 11:42:04 +0300
commitf8665314d4ba190679001b81bb7d9fd7a38fc0f6 (patch)
tree7a6489c8f31bb45a88bc71c3cc53de2b8460b829 /mysql-test/main/xa.result
parent1ef3207cb8ddeae690c6f23b397b40e589d079fa (diff)
parent0e1437e147e8c7164600a0d352361c54c64eb12c (diff)
downloadmariadb-git-f8665314d4ba190679001b81bb7d9fd7a38fc0f6.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'mysql-test/main/xa.result')
-rw-r--r--mysql-test/main/xa.result26
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/main/xa.result b/mysql-test/main/xa.result
index b2c23995442..2cb2e5e113b 100644
--- a/mysql-test/main/xa.result
+++ b/mysql-test/main/xa.result
@@ -430,6 +430,32 @@ XA ROLLBACK 'xid1';
#
XA START 'gtrid', 'bqual', 0x80000000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0x80000000' at line 1
+#
+# XA states and SHOW commands
+#
+create table t1 (pk int primary key) engine=innodb;
+xa start 'foo';
+insert t1 set pk=1;
+xa end 'foo';
+xa prepare 'foo';
+show status like 'foo';
+Variable_name Value
+select table_name,table_comment from information_schema.tables where table_schema='test';
+table_name t1
+table_comment
+select table_name,table_rows,table_comment from information_schema.tables where table_schema='test';
+table_name t1
+table_rows NULL
+table_comment XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
+Warnings:
+Level Warning
+Code 1399
+Message XAER_RMFAIL: The command cannot be executed when global transaction is in the PREPARED state
+xa commit 'foo';
+drop table t1;
+#
+# End of 10.2 tests
+#
XA BEGIN 'xid';
CREATE TEMPORARY SEQUENCE s;
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state