~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/mysql-test/tokudb/t/mvcc-35.test

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# verify a db_get does not read a read committed transaction's data because it is in live list
 
2
 
 
3
#--source include/have_tokudb.inc
 
4
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
 
5
 
 
6
--echo # Establish connection conn1 (user = root)
 
7
connect (conn1,localhost,root,,);
 
8
 
 
9
--disable_warnings
 
10
DROP TABLE IF EXISTS foo;
 
11
--enable_warnings
 
12
 
 
13
connection default;
 
14
set session transaction isolation level read committed;
 
15
create table foo (a int, b int, c int, primary key (a), key (b))engine=TokuDB;
 
16
show create table foo;
 
17
insert into foo values (1,10,100),(2,20,200),(3,30,300),(4,40,400),(5,50,500),(6,60,600),(7,70,700),(8,80,800),(9,90,900);
 
18
begin;
 
19
select * from foo;
 
20
--echo # should use key b
 
21
explain select * from foo where b=50;
 
22
--echo # should get (5,50,500)
 
23
select * from foo where b=50;
 
24
replace into foo values (5,50,1515);
 
25
 
 
26
connection conn1;
 
27
set session transaction isolation level read committed;
 
28
begin;
 
29
--echo # should use key b
 
30
explain select * from foo where b=50;
 
31
--echo # should get (5,50,500)
 
32
select * from foo where b=50;
 
33
 
 
34
connection default;
 
35
commit;
 
36
--echo # should use key b
 
37
explain select * from foo where b=50;
 
38
--echo # should get (5,50,1515)
 
39
select * from foo where b=50;
 
40
 
 
41
connection conn1;
 
42
--echo # should use key b
 
43
explain select * from foo where b=50;
 
44
--echo # should get (5,50,1515)
 
45
select * from foo where b=50;
 
46
commit;
 
47
--echo # should use key b
 
48
explain select * from foo where b=50;
 
49
--echo # should get (5,50,1515)
 
50
select * from foo where b=50;
 
51
 
 
52
connection default;
 
53
disconnect conn1;
 
54
 
 
55
connection default;
 
56
# Final cleanup.
 
57
set session transaction isolation level serializable;
 
58
DROP TABLE foo;