mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / rpl / r / rpl_insert_ignore.result
blob63b9244a40dfb3be5cb7af6898a52a3614819d5f
1 include/master-slave.inc
2 [connection master]
3 CREATE TABLE t1 (
4 a int unsigned not null auto_increment primary key,
5 b int unsigned,
6 unique (b)
7 ) ENGINE=innodb;
8 CREATE TABLE t2 (
9 a int unsigned, # to force INSERT SELECT to have a certain order
10 b int unsigned
11 ) ENGINE=innodb;
12 INSERT INTO t1 VALUES (NULL, 1);
13 INSERT INTO t1 VALUES (NULL, 2);
14 INSERT INTO t1 VALUES (NULL, 3);
15 INSERT INTO t1 VALUES (NULL, 4);
16 INSERT INTO t2 VALUES (1, 1);
17 INSERT INTO t2 VALUES (2, 2);
18 INSERT INTO t2 VALUES (3, 5);
19 INSERT INTO t2 VALUES (4, 3);
20 INSERT INTO t2 VALUES (5, 4);
21 INSERT INTO t2 VALUES (6, 6);
22 INSERT IGNORE INTO t1 SELECT NULL, t2.b FROM t2 ORDER BY t2.a;
23 include/assert.inc [Count of elements in t1 should be 6.]
24 include/diff_tables.inc [master:test.t1 , slave:test.t1]
25 INSERT IGNORE INTO t1 SELECT NULL, t2.b FROM t2 ORDER BY t2.a;
26 include/assert.inc [Count of elements in t1 should be 6.]
27 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.]
28 drop table t1, t2;
29 CREATE TABLE t1 (
30 a int unsigned not null auto_increment primary key,
31 b int unsigned,
32 unique (b)
33 ) ENGINE=myisam;
34 CREATE TABLE t2 (
35 a int unsigned, # to force INSERT SELECT to have a certain order
36 b int unsigned
37 ) ENGINE=myisam;
38 INSERT INTO t1 VALUES (NULL, 1);
39 INSERT INTO t1 VALUES (NULL, 2);
40 INSERT INTO t1 VALUES (NULL, 3);
41 INSERT INTO t1 VALUES (NULL, 4);
42 INSERT INTO t2 VALUES (1, 1);
43 INSERT INTO t2 VALUES (2, 2);
44 INSERT INTO t2 VALUES (3, 5);
45 INSERT INTO t2 VALUES (4, 3);
46 INSERT INTO t2 VALUES (5, 4);
47 INSERT INTO t2 VALUES (6, 6);
48 INSERT IGNORE INTO t1 SELECT NULL, t2.b FROM t2 ORDER BY t2.a;
49 include/assert.inc [Count of elements in t1 should be 6.]
50 include/diff_tables.inc [master:test.t1 , slave:test.t1]
51 INSERT IGNORE INTO t1 SELECT NULL, t2.b FROM t2 ORDER BY t2.a;
52 include/assert.inc [Count of elements in t1 should be 6.]
53 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.]
54 drop table t1, t2;
55 include/rpl_end.inc