1
-- source include/not_embedded.inc
4
# BUG#10308: purge log with subselect
5
# Bug#28553: mysqld crash in "purge master log before(select time from information_schema)"
8
purge master logs before (select adddate(current_timestamp(), interval -4 day));
9
purge master logs before adddate(current_timestamp(), interval -4 day);
12
# Bug31048: Many nested subqueries may cause server crash.
14
create table t1(a int,b int,key(a),key(b));
15
insert into t1(a,b) values (1,2),(2,1),(2,3),(3,4),(5,4),(5,5),
19
let $should_work_nesting= 5;
20
let $start= select sum(a),a from t1 where a> ( select sum(a) from t1 ;
21
let $end= )group by a ;
22
let $start_app= where a> ( select sum(a) from t1 ;
23
let $end_pre= )group by b limit 1 ;
27
# At least 4 level nesting should work without errors
28
while ($should_work_nesting)
30
--echo $should_work_nesting
32
eval explain $start $end;
37
dec $should_work_nesting;
39
# Other may fail with the 'stack overrun error'
46
eval explain $start $end;
57
--echo End of 5.1 tests