summaryrefslogtreecommitdiff
path: root/mysql-test/suite/optimizer_unfixed_bugs/t/bug41996.test
blob: 7d6237fa5365ca11563b460817c01990b3499f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test for BUG#41996 "multi-table delete crashes server (InnoDB
# table)"

--source include/have_debug.inc
--source include/have_innodb.inc

# crash requires this
set session debug_dbug="+d,optimizer_innodb_icp";

drop table if exists `t1`;
create table `t1` (`c` bigint, key(`c`),`a` int)engine=innodb;
insert into `t1` values(2,2);
delete `t1` from `t1` `a`, `t1` where `a`.`a`=`t1`.`c` ;
drop table `t1`;