~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-38.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, foo_isam;
 
11
--enable_warnings
 
12
 
 
13
connection default;
 
14
set session transaction isolation level repeatable read;
 
15
create table foo (a int, b int, c int, primary key (a), key (b))engine=TokUDB;
 
16
show create table foo;
 
17
create table foo_isam (a int, b int, c int) engine=MyISAM;
 
18
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);
 
19
begin;
 
20
select * from foo;
 
21
--echo # should use key b
 
22
explain select * from foo where b=50;
 
23
--echo # should grab a read lock on the main table on (5,50,500)
 
24
insert into foo_isam select * from foo where b=50;
 
25
--echo # should get (5,50,500)
 
26
select * From foo_isam;
 
27
 
 
28
 
 
29
connection conn1;
 
30
set session transaction isolation level repeatable read;
 
31
--echo # should fail with lock timeout because of read lock grabbed earlier
 
32
--error ER_LOCK_WAIT_TIMEOUT
 
33
replace into foo values (5, 1,1);
 
34
 
 
35
connection default;
 
36
disconnect conn1;
 
37
 
 
38
connection default;
 
39
# Final cleanup.
 
40
set session transaction isolation level serializable;
 
41
DROP TABLE foo, foo_isam;