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

« back to all changes in this revision

Viewing changes to tests/t/innodb-semi-consistent.test

  • 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
 
 
2
 
--disable_warnings
3
 
drop table if exists t1;
4
 
--enable_warnings
5
 
 
6
 
# basic tests of semi-consistent reads
7
 
 
8
 
connect (a,localhost,root,,);
9
 
connect (b,localhost,root,,);
10
 
connection a;
11
 
set session transaction isolation level read committed;
12
 
create table t1(a int not null) engine=innodb;
13
 
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
14
 
set autocommit=0;
15
 
# we have locks_unsafe_for_binlog on by default. this should work.
16
 
select * from t1 where a=3 lock in share mode;
17
 
connection b;
18
 
set session transaction isolation level read committed;
19
 
set autocommit=0;
20
 
update t1 set a=10 where a=5;
21
 
connection a;
22
 
commit;
23
 
connection b;
24
 
update t1 set a=10 where a=5;
25
 
connection a;
26
 
select * from t1 where a=2 for update;
27
 
# this should lock the records (1),(2)
28
 
select * from t1 where a=2 limit 1 for update;
29
 
connection b;
30
 
update t1 set a=11 where a=6;
31
 
update t1 set a=12 where a=2;
32
 
update t1 set a=13 where a=1;
33
 
connection a;
34
 
commit;
35
 
connection b;
36
 
update t1 set a=14 where a=1;
37
 
commit;
38
 
connection a;
39
 
select * from t1;
40
 
drop table t1;
41
 
 
42
 
connection default;
43
 
disconnect a;
44
 
disconnect b;