2009-02-02 22:20:25 +01:00
|
|
|
# Test for Bug#578 mysqlimport -l silently fails when binlog-ignore-db is set
|
2003-06-05 17:02:00 +02:00
|
|
|
|
2009-02-02 22:20:25 +01:00
|
|
|
--source include/have_innodb.inc
|
|
|
|
|
|
|
|
# Save the initial number of concurrent sessions
|
|
|
|
--source include/count_sessions.inc
|
2004-02-22 08:58:51 +01:00
|
|
|
|
2003-06-05 17:02:00 +02:00
|
|
|
connect (con1,localhost,root,,);
|
|
|
|
connect (con2,localhost,root,,);
|
|
|
|
|
|
|
|
connection con1;
|
2003-08-18 23:08:08 +02:00
|
|
|
--disable_warnings
|
2009-02-02 22:20:25 +01:00
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
CREATE TABLE t1(a INT) ENGINE=innodb;
|
2003-09-13 16:05:17 +02:00
|
|
|
--enable_warnings
|
2009-02-02 22:20:25 +01:00
|
|
|
LOCK TABLES t1 WRITE;
|
|
|
|
INSERT INTO t1 VALUES(10);
|
2003-06-05 17:02:00 +02:00
|
|
|
disconnect con1;
|
|
|
|
|
|
|
|
connection con2;
|
|
|
|
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit,
|
|
|
|
# and the other commit when we write to the binlog was not done because of
|
2009-02-02 22:20:25 +01:00
|
|
|
# binlog-ignore-db
|
|
|
|
SELECT * FROM t1;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
|
|
|
connection default;
|
|
|
|
disconnect con2;
|
2005-07-28 02:22:47 +02:00
|
|
|
|
|
|
|
# End of 4.1 tests
|
2009-02-02 22:20:25 +01:00
|
|
|
|
|
|
|
# Wait till we reached the initial number of concurrent sessions
|
|
|
|
--source include/wait_until_count_sessions.inc
|