Current Path : /home/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 : /home/usr.opt/mysql57/mysql-test/suite/binlog/r/binlog_enforce_gtid_consistency_multiple_warnings.result |
call mtr.add_suppression("Statement violates GTID consistency:"); call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); CREATE TABLE t1 (c1 INT) Engine=InnoDB; CREATE TABLE t2 (c1 INT) Engine=MyISAM; SET GLOBAL enforce_gtid_consistency=WARN; BEGIN; CREATE TEMPORARY TABLE temp1 (a INT); Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. DROP TEMPORARY TABLE temp1; Warnings: Warning 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions. INSERT INTO t1 VALUES (1); INSERT INTO t2 VALUES (1); Warnings: Warning 1785 Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables. COMMIT; BEGIN; INSERT INTO t1 VALUES (1); INSERT INTO t2 VALUES (1); Warnings: Warning 1785 Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables. INSERT INTO t1 VALUES (1); COMMIT; BEGIN; UPDATE t1, t2 SET t1.c1=2, t2.c1=1000; Warnings: Warning 1785 Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables. Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement accesses nontransactional table as well as transactional or temporary table, and writes to any of them. INSERT INTO t1 VALUES (1); COMMIT; DROP TABLE t1; DROP TABLE t2; SET GLOBAL enforce_gtid_consistency=SAVED_LEVEL; RESET MASTER;