Debian Codegraph @

mysql-test/suite/galera/t/MDEV-30804.test

raw
1 #
2 # Test that transaction requiring two-phase commit and involving
3 # storage engines not supporting it rolls back with a message.
4 #
5
6 --source include/galera_cluster.inc
7 --source include/have_innodb.inc
8 --source include/have_aria.inc
9
10 CREATE TABLE t (a INT) ENGINE=Aria;
11 CREATE TABLE t1 (a INT) ENGINE=InnoDB;
12
13 START TRANSACTION;
14 INSERT INTO t VALUES ('1');
15 INSERT INTO t1 VALUES ('1');
16
17 --error ER_ERROR_DURING_COMMIT
18 COMMIT;
19
20 DROP TABLE t;
21 DROP TABLE t1;