~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
-- source include/have_innodb.inc
2
3
--disable_warnings
4
drop table if exists t1;
5
--enable_warnings
6
7
connect (a,localhost,root,,);
8
connect (b,localhost,root,,);
9
10
11
#
12
# BUG#11238 - in prelocking mode SELECT .. FOR UPDATE is changed to
13
# non-blocking SELECT
14
#
15
SET GLOBAL log_bin_trust_function_creators = 1;
16
create table t1 (col1 integer primary key, col2 integer) engine=innodb;
17
insert t1 values (1,100);
18
start transaction;
19
select col2 from t1 where col1=1 for update;
20
connection b;
21
send update t1 set col2=0 where col1=1;
22
connection default;
23
select * from t1;
24
connection a;
25
rollback;
26
connection b;
27
reap;
28
rollback;
29
connection default;
30
drop table t1;
31
disconnect a;
32
disconnect b;
33
SET GLOBAL log_bin_trust_function_creators = 0;