1
by brian
clean slate |
1 |
# This is a test for bug 578 |
2 |
||
3 |
-- source include/have_innodb.inc
|
|
4 |
||
5 |
connect (con1,localhost,root,,); |
|
6 |
connect (con2,localhost,root,,); |
|
7 |
||
8 |
connection con1; |
|
9 |
--disable_warnings
|
|
10 |
drop table if exists t1; |
|
496.1.2
by Paul McCullagh
Changes to .test files to run both PBXT and InnoDB |
11 |
create table t1(a int); |
1
by brian
clean slate |
12 |
--enable_warnings
|
13 |
lock tables t1 write; |
|
14 |
insert into t1 values(10); |
|
15 |
disconnect con1; |
|
16 |
||
17 |
connection con2; |
|
18 |
# The bug was that, because of the LOCK TABLES, the handler "forgot" to commit, |
|
19 |
# and the other commit when we write to the binlog was not done because of |
|
496.1.2
by Paul McCullagh
Changes to .test files to run both PBXT and InnoDB |
20 |
# binlog-ignore-db |
21 |
# PBXT: the transaction is committed, but it is a bit delayed |
|
22 |
# this is due to the delay in pbxt_commit() - read GOTCHA |
|
23 |
--sleep 1
|
|
1
by brian
clean slate |
24 |
select * from t1; |
25 |
drop table t1; |
|
26 |
||
27 |
# End of 4.1 tests |