~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/fast_update_uint_bounds.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
source include/have_innodb.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 tt (id int primary key, x int unsigned);
 
11
insert into tt values (1,0),(2,pow(2,32)-1);
 
12
create table ti like tt;
 
13
alter table ti engine=innodb;
 
14
insert into ti select * from tt;
 
15
 
 
16
set tokudb_disable_slow_update=1;
 
17
 
 
18
update noar tt set x=x+1 where id=1;
 
19
update noar ti set x=x+1 where id=1;
 
20
let $diff_tables = test.tt, test.ti;
 
21
source include/diff_tables.inc;
 
22
 
 
23
update noar tt set x=x-2 where id=1;
 
24
update noar ti set x=if(x<2,0,x-2) where id=1;
 
25
let $diff_tables = test.tt, test.ti;
 
26
source include/diff_tables.inc;
 
27
 
 
28
update noar tt set x=x+1 where id=1;
 
29
update noar ti set x=x+1 where id=1;
 
30
let $diff_tables = test.tt, test.ti;
 
31
source include/diff_tables.inc;
 
32
 
 
33
update noar tt set x=x-1 where id=2;
 
34
update noar ti set x=x-1 where id=2;
 
35
let $diff_tables = test.tt, test.ti;
 
36
source include/diff_tables.inc;
 
37
 
 
38
update noar tt set x=x+1 where id=2;
 
39
update noar ti set x=x+1 where id=2;
 
40
let $diff_tables = test.tt, test.ti;
 
41
source include/diff_tables.inc;
 
42
 
 
43
# test clip at maximum
 
44
insert into tt values (4,pow(2,32)-10);
 
45
insert into ti values (4,pow(2,32)-10);
 
46
update noar tt set x=x+20 where id=4;
 
47
update noar ti set x=x+20 where id=4;
 
48
let $diff_tables = test.tt, test.ti;
 
49
source include/diff_tables.inc;
 
50
 
 
51
# test clip at minimum
 
52
insert into tt values (5,10);
 
53
insert into ti values (5,10);
 
54
update noar tt set x=x-20 where id=5;
 
55
update noar ti set x=if(x<20,0,x-20) where id=5;
 
56
let $diff_tables = test.tt, test.ti;
 
57
source include/diff_tables.inc;
 
58
 
 
59
drop table tt, ti;
 
60
 
 
61
 
 
62