Current Path : /usr/opt/mysql57/mysql-test/suite/binlog/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/binlog/r/binlog_xa_handling.result |
CALL mtr.add_suppression("Statement is unsafe because it is being used inside a XA transaction"); CREATE TABLE t1(f1 int); XA START'',''; INSERT INTO t1 VALUES(10); BINLOG ' SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8='; XA END''; XA PREPARE''; XA COMMIT''; SET @sav.pseudo_slave_mode= @@session.pseudo_slave_mode; SELECT @@session.pseudo_slave_mode; @@session.pseudo_slave_mode 0 SET @@session.pseudo_slave_mode=1; Warnings: Warning 1231 'pseudo_slave_mode' is already ON. BEGIN; BINLOG ' SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8='; COMMIT; XA START 'xa_rollback'; INSERT INTO t1 VALUES(10); XA END 'xa_rollback'; XA ROLLBACK 'xa_rollback'; SET @@session.pseudo_slave_mode=1; BEGIN; BINLOG ' SOgWTg8BAAAAbgAAAHIAAAAAAAQANS42LjMtbTUtZGVidWctbG9nAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABI6BZOEzgNAAgAEgAEBAQEEgAAVgAEGggAAAAICAgCAAAAAAVAYI8='; COMMIT; XA START 'xa_disconnect'; INSERT INTO t1 VALUES(10); XA START 'xa_commit'; INSERT INTO t1 VALUES(10); XA END 'xa_commit'; XA PREPARE 'xa_commit'; XA COMMIT 'xa_commit'; SET @@session.pseudo_slave_mode= @sav.pseudo_slave_mode; DROP TABLE t1; RESET MASTER; CREATE TABLE t1 (c1 INT); XA BEGIN 'xa1'; INSERT INTO t1 VALUES (1); XA END 'xa1'; XA COMMIT 'xa1' ONE PHASE; [Validate that SHOW BINLOG EVENTS shows the ONE PHASE statement.] DROP TABLE t1; RESET MASTER;