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

« back to all changes in this revision

Viewing changes to storage/tokudb/mysql-test/tokudb/r/mvcc-38.result

  • 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
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
 
2
# Establish connection conn1 (user = root)
 
3
DROP TABLE IF EXISTS foo, foo_isam;
 
4
set session transaction isolation level repeatable read;
 
5
create table foo (a int, b int, c int, primary key (a), key (b))engine=TokUDB;
 
6
show create table foo;
 
7
Table   Create Table
 
8
foo     CREATE TABLE `foo` (
 
9
  `a` int(11) NOT NULL DEFAULT '0',
 
10
  `b` int(11) DEFAULT NULL,
 
11
  `c` int(11) DEFAULT NULL,
 
12
  PRIMARY KEY (`a`),
 
13
  KEY `b` (`b`)
 
14
) ENGINE=TokuDB DEFAULT CHARSET=latin1
 
15
create table foo_isam (a int, b int, c int) engine=MyISAM;
 
16
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);
 
17
begin;
 
18
select * from foo;
 
19
a       b       c
 
20
1       10      100
 
21
2       20      200
 
22
3       30      300
 
23
4       40      400
 
24
5       50      500
 
25
6       60      600
 
26
7       70      700
 
27
8       80      800
 
28
9       90      900
 
29
# should use key b
 
30
explain select * from foo where b=50;
 
31
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
32
1       SIMPLE  foo     ref     b       b       5       const   1       
 
33
# should grab a read lock on the main table on (5,50,500)
 
34
insert into foo_isam select * from foo where b=50;
 
35
# should get (5,50,500)
 
36
select * From foo_isam;
 
37
a       b       c
 
38
5       50      500
 
39
set session transaction isolation level repeatable read;
 
40
# should fail with lock timeout because of read lock grabbed earlier
 
41
replace into foo values (5, 1,1);
 
42
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 
43
set session transaction isolation level serializable;
 
44
DROP TABLE foo, foo_isam;