~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/t/rpl_loaddata_s.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-11 18:47:32 UTC
  • mto: (2.1.2 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100511184732-jhn055kfhxze24kt
Tags: upstream-5.1.46
ImportĀ upstreamĀ versionĀ 5.1.46

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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).
 
4
 
 
5
-- source include/have_binlog_format_mixed_or_statement.inc
 
6
-- source include/master-slave.inc
 
7
 
 
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;
 
11
 
 
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;
 
16
 
 
17
# Test logging on slave;
 
18
 
 
19
save_master_pos;
 
20
connection slave;
 
21
sync_with_master;
 
22
select count(*) from test.t1; # check that LOAD was replicated
 
23
--replace_column 2 # 5 #
 
24
--replace_regex /table_id: [0-9]+/table_id: #/
 
25
show binlog events from 106; # should be nothing
 
26
 
 
27
# Cleanup
 
28
connection master;
 
29
drop table test.t1;
 
30
sync_slave_with_master;