~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/mysql-test/tokudb/r/savepoint-1078-2.result

  • 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
SET DEFAULT_STORAGE_ENGINE = 'TokuDB';
 
2
DROP TABLE IF EXISTS t1;
 
3
set autocommit=0;
 
4
set session transaction isolation level read committed;
 
5
create table t1 (n int);
 
6
begin;
 
7
savepoint `my_savepoint`;
 
8
insert into t1 values (7);
 
9
savepoint `savept2`;
 
10
insert into t1 values (3);
 
11
select n from t1;
 
12
n
 
13
7
 
14
3
 
15
savepoint savept3;
 
16
rollback to savepoint savept2;
 
17
rollback to savepoint savept3;
 
18
ERROR 42000: SAVEPOINT savept3 does not exist
 
19
rollback to savepoint savept2;
 
20
release savepoint `my_savepoint`;
 
21
select n from t1;
 
22
n
 
23
7
 
24
rollback to savepoint `my_savepoint`;
 
25
ERROR 42000: SAVEPOINT my_savepoint does not exist
 
26
rollback to savepoint savept2;
 
27
ERROR 42000: SAVEPOINT savept2 does not exist
 
28
insert into t1 values (8);
 
29
savepoint sv;
 
30
commit;
 
31
savepoint sv;
 
32
set autocommit=1;
 
33
rollback;
 
34
drop table t1;
 
35
create table t1 (a int, b int, primary key (a));
 
36
begin;
 
37
insert into t1 values (1,10);
 
38
select * from t1;
 
39
a       b
 
40
1       10
 
41
savepoint a;
 
42
insert into t1 values (2,20);
 
43
select * from t1;
 
44
a       b
 
45
1       10
 
46
2       20
 
47
savepoint b;
 
48
insert into t1 values (3,30);
 
49
rollback to savepoint a;
 
50
select * From t1;
 
51
a       b
 
52
1       10
 
53
rollback;
 
54
select * from t1;
 
55
a       b
 
56
drop table t1;
 
57
create table t1 (a int, b int, primary key (a));
 
58
begin;
 
59
insert into t1 values (1,10);
 
60
select * from t1;
 
61
a       b
 
62
1       10
 
63
savepoint a;
 
64
insert into t1 values (2,20);
 
65
select * from t1;
 
66
a       b
 
67
1       10
 
68
2       20
 
69
savepoint b;
 
70
insert into t1 values (3,30);
 
71
release savepoint a;
 
72
select * From t1;
 
73
a       b
 
74
1       10
 
75
2       20
 
76
3       30
 
77
rollback;
 
78
select * from t1;
 
79
a       b
 
80
drop table t1;
 
81
create table t1 (a int, b int, primary key (a));
 
82
begin;
 
83
insert into t1 values (1,10);
 
84
select * from t1;
 
85
a       b
 
86
1       10
 
87
savepoint a;
 
88
replace into t1 values (1,100);
 
89
select * from t1;
 
90
a       b
 
91
1       100
 
92
savepoint b;
 
93
delete from t1 where a=1;
 
94
select * from t1;
 
95
a       b
 
96
savepoint c;
 
97
update t1 set b=1000 where a=1;
 
98
select * from t1;
 
99
a       b
 
100
rollback to savepoint c;
 
101
select * From t1;
 
102
a       b
 
103
rollback to savepoint b;
 
104
select * from t1;
 
105
a       b
 
106
1       100
 
107
rollback to savepoint a;
 
108
select * from t1;
 
109
a       b
 
110
1       10
 
111
rollback;
 
112
select * from t1;
 
113
a       b
 
114
drop table t1;
 
115
create table t1 (a int, b int, primary key (a));
 
116
insert into t1 values (1,1);
 
117
select * from t1;
 
118
a       b
 
119
1       1
 
120
begin;
 
121
replace into t1 values (1,10);
 
122
select * from t1;
 
123
a       b
 
124
1       10
 
125
savepoint a;
 
126
replace into t1 values (1,100);
 
127
select * from t1;
 
128
a       b
 
129
1       100
 
130
savepoint b;
 
131
delete from t1 where a=1;
 
132
select * from t1;
 
133
a       b
 
134
savepoint c;
 
135
update t1 set b=1000 where a=1;
 
136
select * from t1;
 
137
a       b
 
138
rollback to savepoint c;
 
139
select * From t1;
 
140
a       b
 
141
rollback to savepoint b;
 
142
select * from t1;
 
143
a       b
 
144
1       100
 
145
rollback to savepoint a;
 
146
select * from t1;
 
147
a       b
 
148
1       10
 
149
rollback;
 
150
select * from t1;
 
151
a       b
 
152
1       1
 
153
drop table t1;
 
154
create table t1 (a int, b int, primary key (a));
 
155
begin;
 
156
insert into t1 values (1,10);
 
157
select * from t1;
 
158
a       b
 
159
1       10
 
160
savepoint a;
 
161
replace into t1 values (1,100);
 
162
select * from t1;
 
163
a       b
 
164
1       100
 
165
savepoint b;
 
166
delete from t1 where a=1;
 
167
select * from t1;
 
168
a       b
 
169
savepoint c;
 
170
insert into t1 values (2,20);
 
171
select * from t1;
 
172
a       b
 
173
2       20
 
174
release savepoint c;
 
175
select * From t1;
 
176
a       b
 
177
2       20
 
178
release savepoint b;
 
179
select * from t1;
 
180
a       b
 
181
2       20
 
182
release savepoint a;
 
183
select * from t1;
 
184
a       b
 
185
2       20
 
186
commit;
 
187
select * from t1;
 
188
a       b
 
189
2       20
 
190
drop table t1;
 
191
create table t1 (a int, b int, primary key (a));
 
192
begin;
 
193
insert into t1 values (1,10);
 
194
select * from t1;
 
195
a       b
 
196
1       10
 
197
savepoint a;
 
198
replace into t1 values (1,100);
 
199
select * from t1;
 
200
a       b
 
201
1       100
 
202
savepoint b;
 
203
delete from t1 where a=1;
 
204
select * from t1;
 
205
a       b
 
206
savepoint c;
 
207
insert into t1 values (2,20);
 
208
select * from t1;
 
209
a       b
 
210
2       20
 
211
release savepoint c;
 
212
select * From t1;
 
213
a       b
 
214
2       20
 
215
rollback to savepoint b;
 
216
select * from t1;
 
217
a       b
 
218
1       100
 
219
release savepoint a;
 
220
select * from t1;
 
221
a       b
 
222
1       100
 
223
rollback;
 
224
select * from t1;
 
225
a       b
 
226
drop table t1;
 
227
create table t1 (a int, b int, primary key (a));
 
228
begin;
 
229
insert into t1 values (1,10);
 
230
insert into t1 values (2,20);
 
231
savepoint a;
 
232
insert into t1 values (3,30),(4,40);
 
233
insert into t1 values (5,50),(6,60), (3,333), (7,70);
 
234
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
 
235
select * from t1;
 
236
a       b
 
237
1       10
 
238
2       20
 
239
3       30
 
240
4       40
 
241
savepoint b;
 
242
insert ignore into t1 values (8,80),(1,100),(9,90);
 
243
select * from t1;
 
244
a       b
 
245
1       10
 
246
2       20
 
247
3       30
 
248
4       40
 
249
8       80
 
250
9       90
 
251
rollback to savepoint b;
 
252
select * from t1;
 
253
a       b
 
254
1       10
 
255
2       20
 
256
3       30
 
257
4       40
 
258
rollback to savepoint a;
 
259
select * from t1;
 
260
a       b
 
261
1       10
 
262
2       20
 
263
insert into t1 value (10,100);
 
264
savepoint c;
 
265
select * from t1;
 
266
a       b
 
267
1       10
 
268
2       20
 
269
10      100
 
270
release savepoint a;
 
271
rollback to savepoint c;
 
272
ERROR 42000: SAVEPOINT c does not exist
 
273
commit;
 
274
select * from t1;
 
275
a       b
 
276
1       10
 
277
2       20
 
278
10      100
 
279
drop table t1;