~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

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