Debian Codegraph @

mysql-test/suite/rpl/t/rpl_free_items.test

raw
1 source include/master-slave.inc;
2 create table t1 (a int);
3 create table t2 (a int);
4 disable_query_log;
5 SET @query="INSERT INTO t2 SELECT * FROM t1 WHERE a REGEXP \"0\"";
6 let $1 = 2000;
7 while ($1)
8 {
9 eval SET @query=concat(@query, " OR a REGEXP '$1'");
10 dec $1;
11 }
12 let $1=`select @query`;
13 eval $1;
14 enable_query_log;
15 # I have seen the slave crash either now or at shutdown
16 sync_slave_with_master;
17 connection master;
18 drop table t1;
19 drop table t2;
20 sync_slave_with_master;
21
22 # End of 4.1 tests
23 --source include/rpl_end.inc