~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/nested_txn_begin.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
--disable_warnings
 
5
DROP TABLE IF EXISTS t1, t2;
 
6
--enable_warnings
 
7
 
 
8
CREATE TABLE t1 (a int);
 
9
 
 
10
begin;
 
11
insert into t1 values(1);
 
12
delete from t1 where a=1;
 
13
rollback;
 
14
select * from t1;
 
15
 
 
16
DROP table t1;
 
17
 
 
18
create table t1 (a int, b int, primary key (a));
 
19
 
 
20
#
 
21
# do some rollback tests, all nesting levels are 2
 
22
#
 
23
begin;
 
24
insert into t1 values (1,10);
 
25
select * From t1;
 
26
rollback;
 
27
select * From t1;
 
28
 
 
29
begin;
 
30
insert into t1 values (1,10);
 
31
select * From t1;
 
32
update t1 set b=b+5;
 
33
select * From t1;
 
34
update t1 set b=b+5 where a=1;
 
35
select * from t1;
 
36
rollback;
 
37
select * from t1;
 
38
 
 
39
begin;
 
40
insert into t1 values (1,10),(2,20);
 
41
select * From t1;
 
42
delete from t1 where a > 1;
 
43
select * from t1;
 
44
rollback;
 
45
select * from t1;
 
46
 
 
47
insert into t1 values (1,10),(2,20),(3,30);
 
48
select * from t1;
 
49
rollback;
 
50
select * From t1;
 
51
 
 
52
#
 
53
# do some commit tests
 
54
#
 
55
begin;
 
56
insert into t1 values (4,40),(5,50),(6,60);
 
57
select * from t1;
 
58
commit;
 
59
select * from t1;
 
60
 
 
61
begin;
 
62
insert into t1 values (7,70);
 
63
--error ER_DUP_ENTRY
 
64
insert into t1 values (8,80), (9,90), (1,10), (10,100);
 
65
insert into t1 values (11,110);
 
66
rollback;
 
67
select * From t1;
 
68
 
 
69
 
 
70
begin;
 
71
insert into t1 values (7,70);
 
72
--error ER_DUP_ENTRY
 
73
insert into t1 values (8,80), (9,90), (1,10), (10,100);
 
74
insert into t1 values (11,110);
 
75
commit;
 
76
select * From t1;
 
77
 
 
78
delete from t1;
 
79
alter table t1 add index (b);
 
80
 
 
81
insert ignore into t1 values (1,10),(2,20),(3,30),(1,10),(4,40);
 
82
select * From t1;
 
83
 
 
84
begin;
 
85
insert ignore into t1 values (5,50),(3,30),(6,60),(7,70);
 
86
select * From t1;
 
87
rollback;
 
88
select * from t1;
 
89
 
 
90
begin;
 
91
insert ignore into t1 values (5,50),(3,30),(6,60),(7,70);
 
92
select * From t1;
 
93
commit;
 
94
select * From t1;
 
95
 
 
96
drop table t1;