Debian Codegraph @

mysql-test/suite/binlog/t/binlog_xa_handling.test

raw
1 ###############################################################################
2 # Bug#19928622: ASSERTION `! IS_SET()' FAILED. | ABORT IN
3 # DIAGNOSTICS_AREA::SET_OK_STATUS
4 #
5 # MDEV-27536 Invalid BINLOG_BASE64_EVENT and assertion Diagnostics_area:: !is_set()
6 #
7 # Test:
8 # =====
9 # Begin an XA transaction and execte a DML statement so that XA state becomes
10 # XA_ACTIVE. Execute the BINLOG command it should not cause any assert.
11 # Execution should be successful.
12 ###############################################################################
13 --source include/have_log_bin.inc
14 --source include/have_innodb.inc
15
16 --connection default
17 CREATE TABLE t1(f1 int) ENGINE=Innodb;
18
19 XA START 'xa';
20 INSERT INTO t1 VALUES(10);
21 BINLOG '
22 SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA
23 AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8=';
24 XA END 'xa';
25 XA PREPARE 'xa';
26 XA ROLLBACK 'xa';
27
28 DROP TABLE t1;