~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/innobase/tests/r/innodb-semi-consistent.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
SET @orig_lock_wait_timeout= @@innodb_lock_wait_timeout;
 
3
SET GLOBAL innodb_lock_wait_timeout=2;
 
4
set session transaction isolation level read committed;
 
5
create table t1(a int not null) engine=innodb;
 
6
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
 
7
set autocommit=0;
 
8
select * from t1 where a=3 lock in share mode;
 
9
a
 
10
3
 
11
set session transaction isolation level read committed;
 
12
set autocommit=0;
 
13
update t1 set a=10 where a=5;
 
14
commit;
 
15
update t1 set a=10 where a=5;
 
16
select * from t1 where a=2 for update;
 
17
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 
18
select * from t1 where a=2 limit 1 for update;
 
19
a
 
20
2
 
21
update t1 set a=11 where a=6;
 
22
update t1 set a=12 where a=2;
 
23
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 
24
update t1 set a=13 where a=1;
 
25
commit;
 
26
update t1 set a=14 where a=1;
 
27
commit;
 
28
select * from t1;
 
29
a
 
30
13
 
31
2
 
32
3
 
33
4
 
34
10
 
35
11
 
36
7
 
37
drop table t1;
 
38
SET GLOBAL innodb_lock_wait_timeout=@orig_lock_wait_timeout ;