~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/cluster_tokudb_bug_993_2.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
#--source include/have_tokudb.inc
 
2
SET DEFAULT_STORAGE_ENGINE='tokudb';
 
3
#
 
4
# Bug #22169: Crash with count(distinct)
 
5
#
 
6
--echo *** Bug #22169 ***
 
7
 
 
8
--disable_warnings
 
9
DROP TABLE IF EXISTS z1;
 
10
--enable_warnings
 
11
 
 
12
create table z1 (a int, b int, c int, d int, e int, primary key (c,d), key (a,b) clustering=yes);
 
13
 
 
14
insert into z1 values (1,1,1,1,1), (1,2,3,4,5), (3,4,1,100,1),(3,4,1,2,3),(3,5,1,21,1),(7,8,4,2,6),(9,10,34,3,2);
 
15
insert into z1 values (-1,-1,-1,-1,-1), (-1,-2,-3,-4,-5), (-3,-4,-1,-100,-1),(-3,-4,-1,-2,-3),(-3,-5,-1,-21,-1),(-7,-8,-4,-2,-6),(-9,-10,-34,-3,-2);
 
16
 
 
17
 
 
18
 
 
19
#let $1 = 2048;
 
20
#SET @a=1;
 
21
#while ($1)
 
22
#{
 
23
#  insert into z1 values (@a * -100, @a*-200, @a*-300, @a*-400, @a*-500);
 
24
#  dec $1;
 
25
#  SET @a = @a+1;
 
26
#}
 
27
 
 
28
 
 
29
 
 
30
select * from z1 group by a,b;
 
31
 
 
32
 
 
33
explain select a,b from z1 where a < 1;
 
34
select max(a) from z1 where a < 1;
 
35
 
 
36
explain select a,b from z1 where a < 9;
 
37
select max(a) from z1 where a < 9;
 
38
 
 
39
explain select a,b from z1 where a < 7;
 
40
select max(a) from z1 where a < 7;
 
41
 
 
42
explain select a,b from z1 where a < 3;
 
43
select max(a) from z1 where a < 3;
 
44
 
 
45
explain select max(b) from z1 where a = 1;
 
46
select max(b) from z1 where a = 1;
 
47
 
 
48
explain select max(b) from z1 where a = 3;
 
49
select max(b) from z1 where a = 3;
 
50
 
 
51
explain select max(b) from z1 where a = 9;
 
52
select max(b) from z1 where a = 9;
 
53
 
 
54
DROP TABLE z1;