Debian Codegraph @

mysql-test/suite/rpl/r/rpl_multi_update.result

raw
1 include/master-slave.inc
2 [connection master]
3 call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');
4 CREATE TABLE t1 (
5 a int unsigned not null auto_increment primary key,
6 b int unsigned
7 ) ENGINE=MyISAM;
8 CREATE TABLE t2 (
9 a int unsigned not null auto_increment primary key,
10 b int unsigned
11 ) ENGINE=MyISAM;
12 INSERT INTO t1 VALUES (NULL, 0);
13 INSERT INTO t1 SELECT NULL, 0 FROM t1;
14 INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
15 SELECT * FROM t1 ORDER BY a;
16 a b
17 1 0
18 2 0
19 SELECT * FROM t2 ORDER BY a;
20 a b
21 1 0
22 2 1
23 UPDATE t1, t2 SET t1.b = t2.b WHERE t1.a = t2.a;
24 connection slave;
25 connection master;
26 drop table t1, t2;
27 include/rpl_end.inc