~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/t/binlog_query_filter_rules.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# regression test for
 
2
# Bug#36099 replicate-do-db affects replaying RBR events with mysqlbinlog
 
3
# The test verifies that the slave side filtering rule does not affect
 
4
# applying of row-events on master via mysqlbinlog
 
5
 
 
6
-- source include/have_log_bin.inc
 
7
-- source include/not_embedded.inc
 
8
-- source include/have_binlog_format_row.inc
 
9
 
 
10
--disable_warnings
 
11
drop table if exists t1;
 
12
--enable_warnings
 
13
 
 
14
reset master;
 
15
 
 
16
create table t1 (a int);
 
17
insert into t1 values (1);
 
18
 
 
19
let $MYSQLD_DATADIR= `select @@datadir`;
 
20
flush logs;
 
21
--exec $MYSQL_BINLOG  $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/bug36099.sql
 
22
 
 
23
drop table t1;
 
24
--exec $MYSQL -e "source $MYSQLTEST_VARDIR/tmp/bug36099.sql"
 
25
 
 
26
--echo *** must be 1 ***
 
27
select * from t1;
 
28
 
 
29
# cleanup
 
30
 
 
31
drop table t1;
 
32
remove_file $MYSQLTEST_VARDIR/tmp/bug36099.sql;