2003-06-05 17:02:00 +02:00
|
|
|
# This is a test for bug 578
|
|
|
|
|
2004-02-22 08:58:51 +01:00
|
|
|
-- source include/have_innodb.inc
|
|
|
|
|
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
|
2003-06-05 17:02:00 +02:00
|
|
|
drop table if exists t1;
|
2003-12-10 05:31:42 +01:00
|
|
|
create table t1(a int) engine=innodb;
|
2003-09-13 16:05:17 +02:00
|
|
|
--enable_warnings
|
2003-06-05 17:02:00 +02:00
|
|
|
lock tables t1 write;
|
|
|
|
insert into t1 values(10);
|
|
|
|
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
|
|
|
|
# binlog-ignore-db
|
|
|
|
select * from t1;
|
|
|
|
drop table t1;
|