mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / rpl / r / rpl_insert_duplicate.result
blob61ebbaaa5a9c4d85b98b64c09b1e1b032231addf
1 include/master-slave.inc
2 [connection master]
3 CREATE TABLE t1 (
4 a INT UNSIGNED NOT NULL PRIMARY KEY
5 ) ENGINE=innodb;
6 CREATE TABLE t2 (
7 a INT UNSIGNED
8 ) ENGINE=innodb;
9 INSERT INTO t1 VALUES (1);
10 INSERT INTO t2 VALUES (1);
11 INSERT INTO t1 SELECT t2.a FROM t2 ORDER BY t2.a ON DUPLICATE KEY UPDATE t1.a= t1.a;
12 include/assert.inc [Sum of elements in t1 should be 1.]
13 include/assert.inc [In SBR or MIXED modes, the event in the binlog should be the same that was executed. In RBR mode, binlog position should stay unchanged.]
14 include/diff_tables.inc [master:test.t1 , slave:test.t1]
15 drop table t1, t2;
16 CREATE TABLE t1 (
17 a INT UNSIGNED NOT NULL PRIMARY KEY
18 ) ENGINE=myisam;
19 CREATE TABLE t2 (
20 a INT UNSIGNED
21 ) ENGINE=myisam;
22 INSERT INTO t1 VALUES (1);
23 INSERT INTO t2 VALUES (1);
24 INSERT INTO t1 SELECT t2.a FROM t2 ORDER BY t2.a ON DUPLICATE KEY UPDATE t1.a= t1.a;
25 include/assert.inc [Sum of elements in t1 should be 1.]
26 include/assert.inc [In SBR or MIXED modes, the event in the binlog should be the same that was executed. In RBR mode, binlog position should stay unchanged.]
27 include/diff_tables.inc [master:test.t1 , slave:test.t1]
28 drop table t1, t2;
29 include/rpl_end.inc