~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/auto_increment_boundary.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
disable_warnings;
 
2
drop table if exists t;
 
3
enable_warnings;
 
4
 
 
5
create table t (id tinyint unsigned not null auto_increment, key(id));
 
6
insert into t set id=0xf8;
 
7
show warnings;
 
8
select * from t;
 
9
select last_insert_id() from t limit 1;
 
10
let $i=0;
 
11
let $n=7;
 
12
while ($i < $n) {
 
13
    insert into t set id=null;
 
14
    show warnings;
 
15
    select * from t;
 
16
    select last_insert_id() from t limit 1;
 
17
    inc $i;
 
18
}
 
19
let $i=0;
 
20
let $n=4;
 
21
while ($i < $n) {
 
22
      error 167;
 
23
      insert into t set id=null;
 
24
      select last_insert_id() from t limit 1;
 
25
      inc $i;
 
26
}
 
27
drop table t;
 
28
 
 
29
create table t (id smallint unsigned not null auto_increment, key(id));
 
30
insert into t set id=0xfff8;
 
31
show warnings;
 
32
select * from t;
 
33
select last_insert_id() from t limit 1;
 
34
let $i=0;
 
35
let $n=7;
 
36
while ($i < $n) {
 
37
    insert into t set id=null;
 
38
    show warnings;
 
39
    select * from t;
 
40
    select last_insert_id() from t limit 1;
 
41
    inc $i;
 
42
}
 
43
let $i=0;
 
44
let $n=4;
 
45
while ($i < $n) {
 
46
      error 167;
 
47
      insert into t set id=null;
 
48
      select last_insert_id() from t limit 1;
 
49
      inc $i;
 
50
}
 
51
drop table t;
 
52
 
 
53
create table t (id int unsigned not null auto_increment, key(id));
 
54
insert into t set id=0xfffffff8;
 
55
show warnings;
 
56
select * from t;
 
57
select last_insert_id() from t limit 1;
 
58
let $i=0;
 
59
let $n=7;
 
60
while ($i < $n) {
 
61
    insert into t set id=null;
 
62
    show warnings;
 
63
    select * from t;
 
64
    select last_insert_id() from t limit 1;
 
65
    inc $i;
 
66
}
 
67
let $i=0;
 
68
let $n=4;
 
69
while ($i < $n) {
 
70
      error 167;
 
71
      insert into t set id=null;
 
72
      select last_insert_id() from t limit 1;
 
73
      inc $i;
 
74
}
 
75
drop table t;
 
76
 
 
77
create table t (id bigint unsigned not null auto_increment, key(id));
 
78
insert into t set id=0xfffffffffffffff8;
 
79
show warnings;
 
80
let $i=0;
 
81
let $n=6;
 
82
while ($i < $n) {
 
83
      insert into t set id=null;
 
84
      show warnings;
 
85
      select * from t;
 
86
      select last_insert_id() from t limit 1;
 
87
      inc $i;
 
88
}
 
89
let $i=0;
 
90
let $n=4;
 
91
while ($i < $n) {
 
92
      error 1467;
 
93
      insert into t set id=null;
 
94
      select last_insert_id() from t limit 1;
 
95
      inc $i;
 
96
}
 
97
 
 
98
drop table t;
 
 
b'\\ No newline at end of file'