1
by brian
clean slate |
1 |
set storage_engine = InnoDB;
|
2 |
set autocommit=1;
|
|
3 |
drop table if exists t1;
|
|
4 |
drop table if exists t2;
|
|
5 |
drop table if exists t3;
|
|
6 |
create table t1 (a int);
|
|
7 |
create table t2 (a int unique);
|
|
8 |
create table t3 (a int);
|
|
9 |
insert into t1 (a) values (1), (2);
|
|
10 |
insert into t3 (a) values (1), (2);
|
|
11 |
insert into t2 (a) values (1001);
|
|
520.1.10
by Brian Aker
Adding back more tests. |
12 |
insert into t1 (a) values (1);
|
1
by brian
clean slate |
13 |
select * from t2;
|
14 |
a
|
|
15 |
1001
|
|
16 |
rollback;
|
|
17 |
select * from t2;
|
|
18 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
19 |
1001
|
1
by brian
clean slate |
20 |
insert into t2 (a) values (1002);
|
21 |
select * from t2;
|
|
22 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
23 |
1001
|
1
by brian
clean slate |
24 |
1002
|
25 |
rollback;
|
|
26 |
select * from t2;
|
|
27 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
28 |
1001
|
29 |
1002
|
|
1
by brian
clean slate |
30 |
insert into t2 (a) values (1003);
|
520.1.10
by Brian Aker
Adding back more tests. |
31 |
update t1 set a= a + 3;
|
1
by brian
clean slate |
32 |
select * from t2;
|
33 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
34 |
1001
|
35 |
1002
|
|
1
by brian
clean slate |
36 |
1003
|
37 |
rollback;
|
|
38 |
select * from t2;
|
|
39 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
40 |
1001
|
41 |
1002
|
|
42 |
1003
|
|
1
by brian
clean slate |
43 |
insert into t2 (a) values (1004);
|
520.1.10
by Brian Aker
Adding back more tests. |
44 |
update t1, t3 set t1.a = 0, t3.a = 0 where (4 = 4) and (t1.a = t3.a);
|
1
by brian
clean slate |
45 |
select * from t2;
|
46 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
47 |
1001
|
48 |
1002
|
|
49 |
1003
|
|
1
by brian
clean slate |
50 |
1004
|
51 |
rollback;
|
|
52 |
select * from t2;
|
|
53 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
54 |
1001
|
55 |
1002
|
|
56 |
1003
|
|
57 |
1004
|
|
1
by brian
clean slate |
58 |
insert into t2 (a) values (1005);
|
520.1.10
by Brian Aker
Adding back more tests. |
59 |
delete from t1 where (a = 5);
|
1
by brian
clean slate |
60 |
select * from t2;
|
61 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
62 |
1001
|
63 |
1002
|
|
64 |
1003
|
|
65 |
1004
|
|
1
by brian
clean slate |
66 |
1005
|
67 |
rollback;
|
|
68 |
select * from t2;
|
|
69 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
70 |
1001
|
71 |
1002
|
|
72 |
1003
|
|
73 |
1004
|
|
74 |
1005
|
|
1
by brian
clean slate |
75 |
insert into t2 (a) values (1006);
|
520.1.10
by Brian Aker
Adding back more tests. |
76 |
delete from t1, t3 using t1, t3 where (6 = 6) ;
|
1
by brian
clean slate |
77 |
select * from t2;
|
78 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
79 |
1001
|
80 |
1002
|
|
81 |
1003
|
|
82 |
1004
|
|
83 |
1005
|
|
1
by brian
clean slate |
84 |
1006
|
85 |
rollback;
|
|
86 |
select * from t2;
|
|
87 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
88 |
1001
|
89 |
1002
|
|
90 |
1003
|
|
91 |
1004
|
|
92 |
1005
|
|
93 |
1006
|
|
1
by brian
clean slate |
94 |
insert into t2 (a) values (1007);
|
520.1.10
by Brian Aker
Adding back more tests. |
95 |
replace t1 values (7);
|
1
by brian
clean slate |
96 |
select * from t2;
|
97 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
98 |
1001
|
99 |
1002
|
|
100 |
1003
|
|
101 |
1004
|
|
102 |
1005
|
|
103 |
1006
|
|
1
by brian
clean slate |
104 |
1007
|
105 |
rollback;
|
|
106 |
select * from t2;
|
|
107 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
108 |
1001
|
109 |
1002
|
|
110 |
1003
|
|
111 |
1004
|
|
112 |
1005
|
|
113 |
1006
|
|
114 |
1007
|
|
1
by brian
clean slate |
115 |
insert into t2 (a) values (1008);
|
520.1.10
by Brian Aker
Adding back more tests. |
116 |
replace into t3 (a) select 8 from t1;
|
1
by brian
clean slate |
117 |
select * from t2;
|
118 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
119 |
1001
|
120 |
1002
|
|
121 |
1003
|
|
122 |
1004
|
|
123 |
1005
|
|
124 |
1006
|
|
125 |
1007
|
|
1
by brian
clean slate |
126 |
1008
|
127 |
rollback;
|
|
128 |
select * from t2;
|
|
129 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
130 |
1001
|
131 |
1002
|
|
132 |
1003
|
|
133 |
1004
|
|
134 |
1005
|
|
135 |
1006
|
|
136 |
1007
|
|
137 |
1008
|
|
1
by brian
clean slate |
138 |
insert into t2 (a) values (1009);
|
520.1.10
by Brian Aker
Adding back more tests. |
139 |
select 9 from t1 ;
|
140 |
9
|
|
141 |
9
|
|
1
by brian
clean slate |
142 |
select * from t2;
|
143 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
144 |
1001
|
145 |
1002
|
|
146 |
1003
|
|
147 |
1004
|
|
148 |
1005
|
|
149 |
1006
|
|
150 |
1007
|
|
151 |
1008
|
|
1
by brian
clean slate |
152 |
1009
|
153 |
rollback;
|
|
154 |
select * from t2;
|
|
155 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
156 |
1001
|
157 |
1002
|
|
158 |
1003
|
|
159 |
1004
|
|
160 |
1005
|
|
161 |
1006
|
|
162 |
1007
|
|
163 |
1008
|
|
164 |
1009
|
|
1
by brian
clean slate |
165 |
insert into t2 (a) values (1010);
|
166 |
select * from t2;
|
|
167 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
168 |
1001
|
169 |
1002
|
|
170 |
1003
|
|
171 |
1004
|
|
172 |
1005
|
|
173 |
1006
|
|
174 |
1007
|
|
175 |
1008
|
|
176 |
1009
|
|
1
by brian
clean slate |
177 |
1010
|
178 |
rollback;
|
|
179 |
select * from t2;
|
|
180 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
181 |
1001
|
182 |
1002
|
|
183 |
1003
|
|
184 |
1004
|
|
185 |
1005
|
|
186 |
1006
|
|
187 |
1007
|
|
188 |
1008
|
|
189 |
1009
|
|
190 |
1010
|
|
1
by brian
clean slate |
191 |
insert into t2 (a) values (1011);
|
520.1.10
by Brian Aker
Adding back more tests. |
192 |
select * from t2;
|
193 |
a
|
|
194 |
1001
|
|
195 |
1002
|
|
196 |
1003
|
|
197 |
1004
|
|
198 |
1005
|
|
199 |
1006
|
|
200 |
1007
|
|
201 |
1008
|
|
202 |
1009
|
|
203 |
1010
|
|
204 |
1011
|
|
205 |
rollback;
|
|
206 |
select * from t2;
|
|
207 |
a
|
|
208 |
1001
|
|
209 |
1002
|
|
210 |
1003
|
|
211 |
1004
|
|
212 |
1005
|
|
213 |
1006
|
|
214 |
1007
|
|
215 |
1008
|
|
216 |
1009
|
|
217 |
1010
|
|
218 |
1011
|
|
219 |
select * from t2;
|
|
220 |
a
|
|
221 |
1001
|
|
222 |
1002
|
|
223 |
1003
|
|
224 |
1004
|
|
225 |
1005
|
|
226 |
1006
|
|
227 |
1007
|
|
228 |
1008
|
|
229 |
1009
|
|
230 |
1010
|
|
231 |
1011
|
|
1
by brian
clean slate |
232 |
insert into t2 (a) values (1013);
|
233 |
select * from t2;
|
|
234 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
235 |
1001
|
236 |
1002
|
|
237 |
1003
|
|
238 |
1004
|
|
239 |
1005
|
|
240 |
1006
|
|
241 |
1007
|
|
242 |
1008
|
|
243 |
1009
|
|
244 |
1010
|
|
245 |
1011
|
|
1
by brian
clean slate |
246 |
1013
|
247 |
rollback;
|
|
248 |
select * from t2;
|
|
249 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
250 |
1001
|
251 |
1002
|
|
252 |
1003
|
|
253 |
1004
|
|
254 |
1005
|
|
255 |
1006
|
|
256 |
1007
|
|
257 |
1008
|
|
258 |
1009
|
|
259 |
1010
|
|
260 |
1011
|
|
261 |
1013
|
|
1
by brian
clean slate |
262 |
insert into t2 (a) values (1014);
|
520.1.10
by Brian Aker
Adding back more tests. |
263 |
show open tables;
|
264 |
Database Table In_use Name_locked
|
|
265 |
test t2 0 0
|
|
266 |
test t1 0 0
|
|
267 |
test t3 0 0
|
|
1
by brian
clean slate |
268 |
select * from t2;
|
269 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
270 |
1001
|
271 |
1002
|
|
272 |
1003
|
|
273 |
1004
|
|
274 |
1005
|
|
275 |
1006
|
|
276 |
1007
|
|
277 |
1008
|
|
278 |
1009
|
|
279 |
1010
|
|
280 |
1011
|
|
281 |
1013
|
|
1
by brian
clean slate |
282 |
1014
|
283 |
rollback;
|
|
284 |
select * from t2;
|
|
285 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
286 |
1001
|
287 |
1002
|
|
288 |
1003
|
|
289 |
1004
|
|
290 |
1005
|
|
291 |
1006
|
|
292 |
1007
|
|
293 |
1008
|
|
294 |
1009
|
|
295 |
1010
|
|
296 |
1011
|
|
297 |
1013
|
|
298 |
1014
|
|
1
by brian
clean slate |
299 |
insert into t2 (a) values (1015);
|
300 |
select * from t2;
|
|
301 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
302 |
1001
|
303 |
1002
|
|
304 |
1003
|
|
305 |
1004
|
|
306 |
1005
|
|
307 |
1006
|
|
308 |
1007
|
|
309 |
1008
|
|
310 |
1009
|
|
311 |
1010
|
|
312 |
1011
|
|
313 |
1013
|
|
314 |
1014
|
|
1
by brian
clean slate |
315 |
1015
|
316 |
rollback;
|
|
317 |
select * from t2;
|
|
318 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
319 |
1001
|
320 |
1002
|
|
321 |
1003
|
|
322 |
1004
|
|
323 |
1005
|
|
324 |
1006
|
|
325 |
1007
|
|
326 |
1008
|
|
327 |
1009
|
|
328 |
1010
|
|
329 |
1011
|
|
330 |
1013
|
|
331 |
1014
|
|
332 |
1015
|
|
1
by brian
clean slate |
333 |
insert into t2 (a) values (1016);
|
334 |
select * from t2;
|
|
335 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
336 |
1001
|
337 |
1002
|
|
338 |
1003
|
|
339 |
1004
|
|
340 |
1005
|
|
341 |
1006
|
|
342 |
1007
|
|
343 |
1008
|
|
344 |
1009
|
|
345 |
1010
|
|
346 |
1011
|
|
347 |
1013
|
|
348 |
1014
|
|
349 |
1015
|
|
1
by brian
clean slate |
350 |
1016
|
351 |
rollback;
|
|
352 |
select * from t2;
|
|
353 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
354 |
1001
|
355 |
1002
|
|
356 |
1003
|
|
357 |
1004
|
|
358 |
1005
|
|
359 |
1006
|
|
360 |
1007
|
|
361 |
1008
|
|
362 |
1009
|
|
363 |
1010
|
|
364 |
1011
|
|
365 |
1013
|
|
366 |
1014
|
|
367 |
1015
|
|
368 |
1016
|
|
1
by brian
clean slate |
369 |
insert into t2 (a) values (1017);
|
370 |
select * from t2;
|
|
371 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
372 |
1001
|
373 |
1002
|
|
374 |
1003
|
|
375 |
1004
|
|
376 |
1005
|
|
377 |
1006
|
|
378 |
1007
|
|
379 |
1008
|
|
380 |
1009
|
|
381 |
1010
|
|
382 |
1011
|
|
383 |
1013
|
|
384 |
1014
|
|
385 |
1015
|
|
386 |
1016
|
|
1
by brian
clean slate |
387 |
1017
|
388 |
rollback;
|
|
389 |
select * from t2;
|
|
390 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
391 |
1001
|
392 |
1002
|
|
393 |
1003
|
|
394 |
1004
|
|
395 |
1005
|
|
396 |
1006
|
|
397 |
1007
|
|
398 |
1008
|
|
399 |
1009
|
|
400 |
1010
|
|
401 |
1011
|
|
402 |
1013
|
|
403 |
1014
|
|
404 |
1015
|
|
405 |
1016
|
|
406 |
1017
|
|
1
by brian
clean slate |
407 |
insert into t2 (a) values (1018);
|
408 |
select * from t2;
|
|
409 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
410 |
1001
|
411 |
1002
|
|
412 |
1003
|
|
413 |
1004
|
|
414 |
1005
|
|
415 |
1006
|
|
416 |
1007
|
|
417 |
1008
|
|
418 |
1009
|
|
419 |
1010
|
|
420 |
1011
|
|
421 |
1013
|
|
422 |
1014
|
|
423 |
1015
|
|
424 |
1016
|
|
425 |
1017
|
|
1
by brian
clean slate |
426 |
1018
|
427 |
rollback;
|
|
428 |
select * from t2;
|
|
429 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
430 |
1001
|
431 |
1002
|
|
432 |
1003
|
|
433 |
1004
|
|
434 |
1005
|
|
435 |
1006
|
|
436 |
1007
|
|
437 |
1008
|
|
438 |
1009
|
|
439 |
1010
|
|
440 |
1011
|
|
441 |
1013
|
|
442 |
1014
|
|
443 |
1015
|
|
444 |
1016
|
|
445 |
1017
|
|
446 |
1018
|
|
1
by brian
clean slate |
447 |
insert into t2 (a) values (1019);
|
520.1.10
by Brian Aker
Adding back more tests. |
448 |
select * from t2;
|
449 |
a
|
|
450 |
1001
|
|
451 |
1002
|
|
452 |
1003
|
|
453 |
1004
|
|
454 |
1005
|
|
455 |
1006
|
|
456 |
1007
|
|
457 |
1008
|
|
458 |
1009
|
|
459 |
1010
|
|
460 |
1011
|
|
461 |
1013
|
|
462 |
1014
|
|
463 |
1015
|
|
464 |
1016
|
|
465 |
1017
|
|
466 |
1018
|
|
467 |
1019
|
|
468 |
rollback;
|
|
469 |
select * from t2;
|
|
470 |
a
|
|
471 |
1001
|
|
472 |
1002
|
|
473 |
1003
|
|
474 |
1004
|
|
475 |
1005
|
|
476 |
1006
|
|
477 |
1007
|
|
478 |
1008
|
|
479 |
1009
|
|
480 |
1010
|
|
481 |
1011
|
|
482 |
1013
|
|
483 |
1014
|
|
484 |
1015
|
|
485 |
1016
|
|
486 |
1017
|
|
487 |
1018
|
|
488 |
1019
|
|
489 |
select * from t2;
|
|
490 |
a
|
|
491 |
1001
|
|
492 |
1002
|
|
493 |
1003
|
|
494 |
1004
|
|
495 |
1005
|
|
496 |
1006
|
|
497 |
1007
|
|
498 |
1008
|
|
499 |
1009
|
|
500 |
1010
|
|
501 |
1011
|
|
502 |
1013
|
|
503 |
1014
|
|
504 |
1015
|
|
505 |
1016
|
|
506 |
1017
|
|
507 |
1018
|
|
508 |
1019
|
|
509 |
rollback;
|
|
510 |
select * from t2;
|
|
511 |
a
|
|
512 |
1001
|
|
513 |
1002
|
|
514 |
1003
|
|
515 |
1004
|
|
516 |
1005
|
|
517 |
1006
|
|
518 |
1007
|
|
519 |
1008
|
|
520 |
1009
|
|
521 |
1010
|
|
522 |
1011
|
|
523 |
1013
|
|
524 |
1014
|
|
525 |
1015
|
|
526 |
1016
|
|
527 |
1017
|
|
528 |
1018
|
|
529 |
1019
|
|
1
by brian
clean slate |
530 |
insert into t2 (a) values (1021);
|
531 |
select * from t2;
|
|
532 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
533 |
1001
|
534 |
1002
|
|
535 |
1003
|
|
536 |
1004
|
|
537 |
1005
|
|
538 |
1006
|
|
539 |
1007
|
|
540 |
1008
|
|
541 |
1009
|
|
542 |
1010
|
|
543 |
1011
|
|
544 |
1013
|
|
545 |
1014
|
|
546 |
1015
|
|
547 |
1016
|
|
548 |
1017
|
|
549 |
1018
|
|
550 |
1019
|
|
1
by brian
clean slate |
551 |
1021
|
552 |
rollback;
|
|
553 |
select * from t2;
|
|
554 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
555 |
1001
|
556 |
1002
|
|
557 |
1003
|
|
558 |
1004
|
|
559 |
1005
|
|
560 |
1006
|
|
561 |
1007
|
|
562 |
1008
|
|
563 |
1009
|
|
564 |
1010
|
|
565 |
1011
|
|
566 |
1013
|
|
567 |
1014
|
|
568 |
1015
|
|
569 |
1016
|
|
570 |
1017
|
|
571 |
1018
|
|
572 |
1019
|
|
573 |
1021
|
|
1
by brian
clean slate |
574 |
insert into t2 (a) values (1022);
|
575 |
select * from t2;
|
|
576 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
577 |
1001
|
578 |
1002
|
|
579 |
1003
|
|
580 |
1004
|
|
581 |
1005
|
|
582 |
1006
|
|
583 |
1007
|
|
584 |
1008
|
|
585 |
1009
|
|
586 |
1010
|
|
587 |
1011
|
|
588 |
1013
|
|
589 |
1014
|
|
590 |
1015
|
|
591 |
1016
|
|
592 |
1017
|
|
593 |
1018
|
|
594 |
1019
|
|
595 |
1021
|
|
1
by brian
clean slate |
596 |
1022
|
597 |
rollback;
|
|
598 |
select * from t2;
|
|
599 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
600 |
1001
|
601 |
1002
|
|
602 |
1003
|
|
603 |
1004
|
|
604 |
1005
|
|
605 |
1006
|
|
606 |
1007
|
|
607 |
1008
|
|
608 |
1009
|
|
609 |
1010
|
|
610 |
1011
|
|
611 |
1013
|
|
612 |
1014
|
|
613 |
1015
|
|
614 |
1016
|
|
615 |
1017
|
|
616 |
1018
|
|
617 |
1019
|
|
618 |
1021
|
|
619 |
1022
|
|
1
by brian
clean slate |
620 |
insert into t2 (a) values (1023);
|
520.1.10
by Brian Aker
Adding back more tests. |
621 |
select * from t2;
|
622 |
a
|
|
623 |
1001
|
|
624 |
1002
|
|
625 |
1003
|
|
626 |
1004
|
|
627 |
1005
|
|
628 |
1006
|
|
629 |
1007
|
|
630 |
1008
|
|
631 |
1009
|
|
632 |
1010
|
|
633 |
1011
|
|
634 |
1013
|
|
635 |
1014
|
|
636 |
1015
|
|
637 |
1016
|
|
638 |
1017
|
|
639 |
1018
|
|
640 |
1019
|
|
641 |
1021
|
|
642 |
1022
|
|
643 |
1023
|
|
644 |
rollback;
|
|
645 |
select * from t2;
|
|
646 |
a
|
|
647 |
1001
|
|
648 |
1002
|
|
649 |
1003
|
|
650 |
1004
|
|
651 |
1005
|
|
652 |
1006
|
|
653 |
1007
|
|
654 |
1008
|
|
655 |
1009
|
|
656 |
1010
|
|
657 |
1011
|
|
658 |
1013
|
|
659 |
1014
|
|
660 |
1015
|
|
661 |
1016
|
|
662 |
1017
|
|
663 |
1018
|
|
664 |
1019
|
|
665 |
1021
|
|
666 |
1022
|
|
667 |
1023
|
|
1
by brian
clean slate |
668 |
=======================================================================
|
669 |
Testing select_to_file
|
|
670 |
=======================================================================
|
|
671 |
insert into t2 (a) values (1025);
|
|
520.1.10
by Brian Aker
Adding back more tests. |
672 |
select 25 into outfile "../tmp/dml.out" from t1;
|
1
by brian
clean slate |
673 |
select * from t2;
|
674 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
675 |
1001
|
676 |
1002
|
|
677 |
1003
|
|
678 |
1004
|
|
679 |
1005
|
|
680 |
1006
|
|
681 |
1007
|
|
682 |
1008
|
|
683 |
1009
|
|
684 |
1010
|
|
685 |
1011
|
|
686 |
1013
|
|
687 |
1014
|
|
688 |
1015
|
|
689 |
1016
|
|
690 |
1017
|
|
691 |
1018
|
|
692 |
1019
|
|
693 |
1021
|
|
694 |
1022
|
|
695 |
1023
|
|
1
by brian
clean slate |
696 |
1025
|
697 |
rollback;
|
|
698 |
select * from t2;
|
|
699 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
700 |
1001
|
701 |
1002
|
|
702 |
1003
|
|
703 |
1004
|
|
704 |
1005
|
|
705 |
1006
|
|
706 |
1007
|
|
707 |
1008
|
|
708 |
1009
|
|
709 |
1010
|
|
710 |
1011
|
|
711 |
1013
|
|
712 |
1014
|
|
713 |
1015
|
|
714 |
1016
|
|
715 |
1017
|
|
716 |
1018
|
|
717 |
1019
|
|
718 |
1021
|
|
719 |
1022
|
|
720 |
1023
|
|
721 |
1025
|
|
1
by brian
clean slate |
722 |
insert into t2 (a) values (1026);
|
520.1.10
by Brian Aker
Adding back more tests. |
723 |
load data infile "../std_data_ln/words.dat" into table t1 (a) set a:=26;
|
724 |
ERROR HY000: Incorrect integer value: 'Aarhus' for column 'a' at row 1
|
|
1
by brian
clean slate |
725 |
select * from t2;
|
726 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
727 |
1001
|
728 |
1002
|
|
729 |
1003
|
|
730 |
1004
|
|
731 |
1005
|
|
732 |
1006
|
|
733 |
1007
|
|
734 |
1008
|
|
735 |
1009
|
|
736 |
1010
|
|
737 |
1011
|
|
738 |
1013
|
|
739 |
1014
|
|
740 |
1015
|
|
741 |
1016
|
|
742 |
1017
|
|
743 |
1018
|
|
744 |
1019
|
|
745 |
1021
|
|
746 |
1022
|
|
747 |
1023
|
|
748 |
1025
|
|
1
by brian
clean slate |
749 |
1026
|
750 |
rollback;
|
|
751 |
select * from t2;
|
|
752 |
a
|
|
520.1.10
by Brian Aker
Adding back more tests. |
753 |
1001
|
754 |
1002
|
|
755 |
1003
|
|
756 |
1004
|
|
757 |
1005
|
|
758 |
1006
|
|
759 |
1007
|
|
760 |
1008
|
|
761 |
1009
|
|
762 |
1010
|
|
763 |
1011
|
|
764 |
1013
|
|
765 |
1014
|
|
766 |
1015
|
|
767 |
1016
|
|
768 |
1017
|
|
769 |
1018
|
|
770 |
1019
|
|
771 |
1021
|
|
772 |
1022
|
|
773 |
1023
|
|
774 |
1025
|
|
775 |
1026
|
|
1
by brian
clean slate |
776 |
=======================================================================
|
777 |
Testing select_dumpvar
|
|
778 |
=======================================================================
|
|
779 |
insert into t2 (a) values (1027);
|
|
520.1.10
by Brian Aker
Adding back more tests. |
780 |
select 27 into @foo;
|
781 |
select * from t2;
|
|
782 |
a
|
|
783 |
1001
|
|
784 |
1002
|
|
785 |
1003
|
|
786 |
1004
|
|
787 |
1005
|
|
788 |
1006
|
|
789 |
1007
|
|
790 |
1008
|
|
791 |
1009
|
|
792 |
1010
|
|
793 |
1011
|
|
794 |
1013
|
|
795 |
1014
|
|
796 |
1015
|
|
797 |
1016
|
|
798 |
1017
|
|
799 |
1018
|
|
800 |
1019
|
|
801 |
1021
|
|
802 |
1022
|
|
803 |
1023
|
|
804 |
1025
|
|
805 |
1026
|
|
806 |
1027
|
|
807 |
rollback;
|
|
808 |
select * from t2;
|
|
809 |
a
|
|
810 |
1001
|
|
811 |
1002
|
|
812 |
1003
|
|
813 |
1004
|
|
814 |
1005
|
|
815 |
1006
|
|
816 |
1007
|
|
817 |
1008
|
|
818 |
1009
|
|
819 |
1010
|
|
820 |
1011
|
|
821 |
1013
|
|
822 |
1014
|
|
823 |
1015
|
|
824 |
1016
|
|
825 |
1017
|
|
826 |
1018
|
|
827 |
1019
|
|
828 |
1021
|
|
829 |
1022
|
|
830 |
1023
|
|
831 |
1025
|
|
832 |
1026
|
|
833 |
1027
|
|
1
by brian
clean slate |
834 |
=======================================================================
|
835 |
Cleanup
|
|
836 |
=======================================================================
|
|
837 |
set autocommit=default;
|
|
838 |
drop table t1;
|
|
839 |
drop table t2;
|
|
840 |
drop table t3;
|
|
841 |
#
|
|
842 |
# Bug#12713 Error in a stored function called from a SELECT doesn't
|
|
843 |
# cause ROLLBACK of statem
|
|
844 |
#
|
|
845 |
# Verify that two-phase commit is not issued for read-only
|
|
846 |
# transactions.
|
|
847 |
#
|
|
848 |
# Verify that two-phase commit is issued for read-write transactions,
|
|
849 |
# even if the change is done inside a stored function called from
|
|
850 |
# SELECT or SHOW statement.
|
|
851 |
#
|
|
852 |
set autocommit=0;
|
|
853 |
drop table if exists t1;
|
|
854 |
drop table if exists t2;
|
|
520.1.10
by Brian Aker
Adding back more tests. |
855 |
drop table if exists t3;
|