From 87bc22a509f7309defe94d1579844cddca7218b3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 24 Sep 2003 23:25:58 +0400 Subject: Test for mysqlbinlog Particularly for BUG#1340 mysqlbinlog coredumps when reading Exec event without seeing Create_file event before mysql-test/mysql-test-run.sh: Now mysqlbinlog will use proper temporary directory --- mysql-test/r/mysqlbinlog.result | 84 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 mysql-test/r/mysqlbinlog.result (limited to 'mysql-test/r/mysqlbinlog.result') diff --git a/mysql-test/r/mysqlbinlog.result b/mysql-test/r/mysqlbinlog.result new file mode 100644 index 00000000000..63f026274af --- /dev/null +++ b/mysql-test/r/mysqlbinlog.result @@ -0,0 +1,84 @@ +drop table if exists t1; +drop table if exists t2; +set timestamp=1000000000; +create table t1 (word varchar(20)); +create table t2 (id int auto_increment not null primary key); +insert into t1 values ("abirvalg"); +insert into t2 values (); +load data infile '../../std_data/words.dat' into table t1; +load data infile '../../std_data/words.dat' into table t1; +load data infile '../../std_data/words.dat' into table t1; +load data infile '../../std_data/words.dat' into table t1; +load data infile '../../std_data/words.dat' into table t1; +load data infile '../../std_data/words.dat' into table t1; +insert into t1 values ("Alas"); +flush logs; + +--- Local -- +use test; +SET TIMESTAMP=1000000000; +create table t1 (word varchar(20)); +SET TIMESTAMP=1000000000; +create table t2 (id int auto_increment not null primary key); +SET TIMESTAMP=1000000000; +insert into t1 values ("abirvalg"); +SET INSERT_ID=1; +SET TIMESTAMP=1000000000; +insert into t2 values (); +LOAD DATA LOCAL INFILE '/home/dlenev/src/mysql-4.0-binlog/mysql-test/var/tmp/words.dat-1-0 ' INTO TABLE t1 FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (word); +LOAD DATA LOCAL INFILE '/home/dlenev/src/mysql-4.0-binlog/mysql-test/var/tmp/words.dat-2-0 ' INTO TABLE t1 FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (word); +LOAD DATA LOCAL INFILE '/home/dlenev/src/mysql-4.0-binlog/mysql-test/var/tmp/words.dat-3-0 ' INTO TABLE t1 FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (word); +LOAD DATA LOCAL INFILE '/home/dlenev/src/mysql-4.0-binlog/mysql-test/var/tmp/words.dat-4-0 ' INTO TABLE t1 FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (word); +LOAD DATA LOCAL INFILE '/home/dlenev/src/mysql-4.0-binlog/mysql-test/var/tmp/words.dat-5-0 ' INTO TABLE t1 FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (word); + +--- Broken LOAD DATA -- +use test; +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); + +--- --database -- +SET INSERT_ID=1; + +--- --position -- +use test; +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); + +--- Remote -- +use test; +SET TIMESTAMP=1000000000; +create table t1 (word varchar(20)); +SET TIMESTAMP=1000000000; +create table t2 (id int auto_increment not null primary key); +SET TIMESTAMP=1000000000; +insert into t1 values ("abirvalg"); +SET INSERT_ID=1; +SET TIMESTAMP=1000000000; +insert into t2 values (); +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); + +--- Broken LOAD DATA -- +use test; +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); + +--- --database -- +use test; +SET TIMESTAMP=1000000000; +create table t1 (word varchar(20)); +SET TIMESTAMP=1000000000; +create table t2 (id int auto_increment not null primary key); +SET TIMESTAMP=1000000000; +insert into t1 values ("abirvalg"); +SET INSERT_ID=1; +SET TIMESTAMP=1000000000; +insert into t2 values (); +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); + +--- --position -- +use test; +SET TIMESTAMP=1000000000; +insert into t1 values ("Alas"); +drop table t1; -- cgit v1.2.1