2012-02-22 14:38:24 +01:00
|
|
|
drop table if exists t1,t2;
|
|
|
|
set @myisam_icp_notembedded_tmp=@@optimizer_switch;
|
|
|
|
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
|
|
|
|
#
|
|
|
|
# BUG#933412: Server crashes in _mi_put_key_in_record on KILL QUERY with ICP, STRAIGHT_JOIN
|
|
|
|
#
|
|
|
|
CREATE TABLE t1 (
|
|
|
|
b INT,
|
|
|
|
c VARCHAR(1) NOT NULL,
|
|
|
|
d DATETIME,
|
|
|
|
KEY (c, b)
|
|
|
|
) ENGINE=MyISAM;
|
|
|
|
# INSERT some data
|
|
|
|
CREATE TABLE t2 ( a INT ) ENGINE=MyISAM;
|
|
|
|
INSERT INTO t2 VALUES
|
|
|
|
(7),(3),(7),(3);
|
2016-03-25 17:51:22 +01:00
|
|
|
connect con2,127.0.0.1,root,,test;
|
2012-02-22 14:38:24 +01:00
|
|
|
# Now run a number of ICP queries while trying to kill them
|
2016-03-25 17:51:22 +01:00
|
|
|
disconnect con2;
|
|
|
|
connection default;
|
2012-02-22 14:38:24 +01:00
|
|
|
DROP TABLE t1,t2;
|
|
|
|
set optimizer_switch=@myisam_icp_notembedded_tmp;
|