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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test case for bug#32205 Replaying statements from mysqlbinlog fails
 
2
# with a syntax error, replicates fine
 
3
 
 
4
source include/have_log_bin.inc;
 
5
source include/have_local_infile.inc;
 
6
 
 
7
reset master;
 
8
--disable_warnings
 
9
drop table if exists t1,t2;
 
10
--enable_warnings
 
11
create table t1 (word varchar(20)) -- create table t1;
 
12
create table t2 (word varchar(20)) -- create table t2;
 
13
load data infile '../../std_data/words.dat' into table t1 -- load data to t1;
 
14
insert into t2 values ("Ada");
 
15
flush logs;
 
16
select * from t2;
 
17
let $MYSQLD_DATADIR= `select @@datadir`;
 
18
--exec $MYSQL_BINLOG --local-load=$MYSQLTEST_VARDIR/tmp/ $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_start_comment.binlog
 
19
--exec $MYSQL --local-infile=1 < $MYSQLTEST_VARDIR/tmp/binlog_start_comment.binlog
 
20
flush logs;
 
21
select * from t2;
 
22
 
 
23
# clean up
 
24
drop table t1,t2;
 
25
remove_file $MYSQLTEST_VARDIR/tmp/binlog_start_comment.binlog;