mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / rpl / t / rpl_loaddata_s.test
blob80785bb562f475b74d1363b9469c9e92a23f2e4c
1 # See if the slave logs (in its own binlog, with --log-slave-updates) a
2 # replicated LOAD DATA INFILE correctly when it has binlog_*_db rules.
3 # This is for BUG#1100 (LOAD DATA INFILE was half-logged).
5 -- source include/have_binlog_format_mixed_or_statement.inc
6 -- source include/master-slave.inc
8 connection slave;
9 # Not sure why we connect to slave and then try to reset master, but I will leave it [JBM]
10 reset master;
12 connection master;
13 # 'test' is the current database
14 create table test.t1(a int, b int, unique(b));
15 load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
17 # Test logging on slave;
19 save_master_pos;
20 connection slave;
21 sync_with_master;
22 select count(*) from test.t1; # check that LOAD was replicated
23 source include/show_binlog_events.inc;
25 # Cleanup
26 connection master;
27 drop table test.t1;
28 sync_slave_with_master;
29 --source include/rpl_end.inc