~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/rows-32m-rand-insert.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
# do a lot of longblob insertions up to 32MB-4 in size with a random key
 
2
--source include/big_test.inc
 
3
 
 
4
SET DEFAULT_STORAGE_ENGINE='tokudb';
 
5
 
 
6
--disable_warnings
 
7
drop table if exists t;
 
8
--enable_warnings
 
9
 
 
10
create table t (id int not null primary key, v longblob not null);
 
11
 
 
12
select @@max_allowed_packet into @my_max_allowed_packet;
 
13
--disable_warnings
 
14
set global max_allowed_packet=100000000;
 
15
--enable_warnings
 
16
 
 
17
connect(conn1,localhost,root,,);
 
18
 
 
19
let $nrows=1000;
 
20
let $maxid=$nrows;
 
21
let $maxblob=32*1024*1024;
 
22
while ($nrows) {
 
23
      eval insert ignore into t (id,v) values (floor(rand()*$maxid),repeat('a',($maxblob-4)*rand()));
 
24
      dec $nrows;
 
25
}
 
26
 
 
27
connection default;
 
28
disconnect conn1;
 
29
set global max_allowed_packet=@my_max_allowed_packet;
 
30
 
 
31
check table t;
 
32
 
 
33
optimize table t;
 
34
 
 
35
check table t;
 
36
 
 
37
drop table t;