~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/lock_tables_lost_commit.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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;
 
11
create table t1(a int) engine=innodb;
 
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
 
20
# binlog-ignore-db  
 
21
select * from t1;
 
22
drop table t1;
 
23
 
 
24
# End of 4.1 tests