Debian Codegraph @

mysql-test/suite/optimizer_unfixed_bugs/t/bug36981.test

raw
1 # test for BUG#36981 "innodb crash when selecting for update"
2
3 --source include/have_debug.inc
4 --source include/have_innodb.inc
5
6 # crash requires this
7 SET @saved_dbug = @@SESSION.debug_dbug;
8 set session debug_dbug="+d,optimizer_innodb_icp";
9
10 create table `t1` (`c1` char(1) default null,`c2` char(10) default null,
11 key (`c1`))
12 engine=innodb default charset=latin1;
13 insert into `t1` values ('3',null);
14 select * from `t1` where `c1`='3' for update;
15 drop table `t1`;
16 SET debug_dbug= @saved_dbug;