~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-checksum-locks.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
# ticket 895 is a query optimization problem with the primary key
 
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
create table foo (a int)engine=TokuDB;
 
15
show create table foo;
 
16
insert into foo values (1),(2),(3);
 
17
begin;
 
18
insert into foo values (4);
 
19
 
 
20
connection conn1;
 
21
set session transaction isolation level repeatable read;
 
22
--echo # 1,2,3
 
23
select * from foo;
 
24
checksum table foo;
 
25
 
 
26
set session transaction isolation level read committed;
 
27
--echo # 1,2,3
 
28
select * from foo;
 
29
checksum table foo;
 
30
 
 
31
set session transaction isolation level read uncommitted;
 
32
--echo # 1,2,3,4
 
33
select * from foo;
 
34
checksum table foo;
 
35
 
 
36
set session transaction isolation level serializable;
 
37
begin;
 
38
--error ER_LOCK_WAIT_TIMEOUT
 
39
select * from foo;
 
40
commit;
 
41
--echo # should be NULL
 
42
checksum table foo;
 
43
 
 
44
 
 
45
connection default;
 
46
commit;
 
47
disconnect conn1;
 
48
 
 
49
connection default;
 
50
# Final cleanup.
 
51
set session transaction isolation level serializable;
 
52
DROP TABLE foo;