mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / extra / rpl_tests / rpl_multi_update.test
blobbf7707f9d6dbc44e07c0dc6b822d271d32c9a240
1 source include/master-slave.inc;
3 eval CREATE TABLE t1 (
4  a int unsigned not null auto_increment primary key,
5  b int unsigned
6 ) ENGINE=$engine_type;
8 eval CREATE TABLE t2 (
9  a int unsigned not null auto_increment primary key,
10  b int unsigned
11 ) ENGINE=$engine_type;
13 INSERT INTO t1 VALUES (NULL, 0);
14 INSERT INTO t1 SELECT NULL, 0 FROM t1;
16 INSERT INTO t2 VALUES (NULL, 0), (NULL,1);
18 SELECT * FROM t1 ORDER BY a;
19 SELECT * FROM t2 ORDER BY a;
21 UPDATE t1, t2 SET t1.b = t2.b WHERE t1.a = t2.a;
22 sync_slave_with_master;
24 # End of 4.1 tests
26 connection master;
27 drop table t1, t2;
29 --source include/rpl_end.inc