summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_loaddata_rule_m.test
blob: c956f2c7720e7f78c4e0b07f2090ae98fb41a4d6 (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
30
# See if the master logs LOAD DATA INFILE correctly when binlog_*_db rules
# exist.
# This is for BUG#1100 (LOAD DATA INFILE was half-logged).

source include/master-slave.inc;

--disable_warnings
drop database if exists mysqltest;
--enable_warnings

connection slave;
stop slave; # don't need slave for this test

# Test logging on master

connection master;
# 'test' is the current database
create database mysqltest;
create table t1(a int, b int, unique(b));
use mysqltest;
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
# Starting from 5.0.3 LOAD DATA is replicated much in the same way as ordinary
# query so "show binlog ..." should show two events (before 5.0.3 no events
# were returned).
--replace_column 2 # 5 #
show binlog events from 98;
drop database mysqltest;

# End of 4.1 tests
# Adding comment for force manual merge 5.0 -> wl1012: Delete me