2003-08-20 23:24:45 +02:00
|
|
|
# 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
|
|
|
|
|
2003-08-20 23:24:45 +02:00
|
|
|
connection slave;
|
2003-11-23 17:02:59 +01:00
|
|
|
stop slave; # don't need slave for this test
|
2003-08-20 23:24:45 +02:00
|
|
|
|
|
|
|
# Test logging on master
|
|
|
|
|
|
|
|
connection master;
|
|
|
|
# 'test' is the current database
|
2003-10-08 11:01:58 +02:00
|
|
|
create database mysqltest;
|
2003-08-20 23:24:45 +02:00
|
|
|
create table t1(a int, b int, unique(b));
|
2003-10-08 11:01:58 +02:00
|
|
|
use mysqltest;
|
2003-08-20 23:24:45 +02:00
|
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
|
|
|
|
show binlog events from 79; # should be nothing
|
2003-10-08 11:01:58 +02:00
|
|
|
drop database mysqltest;
|