~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This is a test for bug 578

-- source include/have_innodb.inc

connect (con1,localhost,root,,);
connect (con2,localhost,root,,);

connection con1;
--disable_warnings
drop table if exists t1;
create table t1(a int);
--enable_warnings
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
# PBXT: the transaction is committed, but it is a bit delayed
# this is due to the delay in pbxt_commit() - read GOTCHA
--sleep 1
select * from t1;
drop table t1;

# End of 4.1 tests