# # test different behavior of ndb using different binlog formats # -- source include/have_blackhole.inc -- source include/have_ndb.inc -- source include/have_log_bin.inc --disable_query_log CALL mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); --enable_query_log # # Bug #29222 Statement mode replicates both statement and # rows when writing to an NDB table # CREATE TABLE t1 (m INT, n INT) ENGINE=MYISAM; CREATE TABLE t2 (b INT, c INT) ENGINE=BLACKHOLE; CREATE TABLE t3 (e INT, f INT) ENGINE=NDB; RESET MASTER; SET SESSION BINLOG_FORMAT=STATEMENT; INSERT INTO t1 VALUES (1,1), (1,2), (2,1), (2,2); INSERT INTO t2 VALUES (1,1), (1,2), (2,1), (2,2); UPDATE t1, t2 SET m = 2, b = 3 WHERE n = c; # A transaction here is not necessary, but I wanted to group the bad statements START TRANSACTION; INSERT INTO t3 VALUES (1,1), (1,2), (2,1), (2,2); UPDATE t1, t3 SET m = 2, e = 3 WHERE n = f; UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c; --echo NOTE! This testcase is affected by bug11932585 --echo the above UPDATE is binlogged in own transation COMMIT; --source include/show_binlog_events.inc DROP TABLE t1, t2, t3;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ndb_binlog_basic.test | File | 2.23 KB | 0644 |
|
ndb_binlog_ddl_multi.test | File | 3.7 KB | 0644 |
|
ndb_binlog_discover.test | File | 1.11 KB | 0644 |
|
ndb_binlog_format.test | File | 1.16 KB | 0644 |
|
ndb_binlog_get_binlog_stmts.inc | File | 122 B | 0644 |
|
ndb_binlog_get_binlog_stmts_basic.inc | File | 2.91 KB | 0644 |
|
ndb_binlog_ignore_db-master.opt | File | 53 B | 0644 |
|
ndb_binlog_ignore_db.test | File | 2.17 KB | 0644 |
|
ndb_binlog_log_apply_status.test | File | 1.68 KB | 0644 |
|
ndb_binlog_log_bin.test | File | 1.33 KB | 0644 |
|
ndb_binlog_multi.test | File | 3.23 KB | 0644 |
|
ndb_binlog_restore.test | File | 4.96 KB | 0644 |
|
ndb_binlog_unique_epoch.cnf | File | 164 B | 0644 |
|
ndb_binlog_unique_epoch.test | File | 3.66 KB | 0644 |
|
ndb_binlog_variants.cnf | File | 999 B | 0644 |
|
ndb_binlog_variants.test | File | 6.11 KB | 0644 |
|