| 1 |
# Test for BUG#41996 "multi-table delete crashes server (InnoDB |
| 2 |
# table)" |
| 3 |
|
| 4 |
--source include/have_debug.inc |
| 5 |
--source include/have_innodb.inc |
| 6 |
|
| 7 |
# crash requires this |
| 8 |
SET @saved_dbug = @@SESSION.debug_dbug; |
| 9 |
set session debug_dbug="+d,optimizer_innodb_icp"; |
| 10 |
|
| 11 |
drop table if exists `t1`; |
| 12 |
create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb; |
| 13 |
insert into `t1` values(2,2); |
| 14 |
delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ; |
| 15 |
drop table `t1`; |
| 16 |
SET debug_dbug= @saved_dbug; |