mariadb/mysql-test/t/rpl_loaddata_rule_m.test

34 lines
910 B
Text
Raw Normal View History

# 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;
2003-10-08 11:01:58 +02:00
--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
2003-10-08 11:01:58 +02:00
create database mysqltest;
create table t1(a int, b int, unique(b));
2003-10-08 11:01:58 +02:00
use mysqltest;
load data infile '../std_data_ln/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;
2003-10-08 11:01:58 +02:00
drop database mysqltest;
use test;
drop table t1;
# End of 4.1 tests
# Adding comment for force manual merge 5.0 -> wl1012: Delete me