summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_loaddata_s.test
blob: 8e2bf012bc992c7d59142c72b13ac5426f5e0b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# See if the slave logs (in its own binlog, with --log-slave-updates) a
# replicated LOAD DATA INFILE correctly when it has binlog_*_db rules.
# This is for BUG#1100 (LOAD DATA INFILE was half-logged).

-- source include/have_binlog_format_statement.inc
-- source include/master-slave.inc

connection slave;
# Not sure why we connect to slave and then try to reset master, but I will leave it [JBM]
reset master;

connection master;
# 'test' is the current database
create table test.t1(a int, b int, unique(b));
load data infile '../std_data_ln/rpl_loaddata.dat' into table test.t1;

# Test logging on slave;

save_master_pos;
connection slave;
sync_with_master;
select count(*) from test.t1; # check that LOAD was replicated
--replace_column 2 # 5 #
show binlog events from 102; # should be nothing

# Cleanup
connection master;
drop table test.t1;
sync_slave_with_master;