1set default_storage_engine=innodb;
2drop table if exists t0,t1,t2;
3create table t0(a int primary key);
4insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
5create table t1(a int primary key);
6insert into t1 select A.a + B.a* 10 + C.a * 100 from t0 A, t0 B, t0 C;
7create table t2 (
8kp1 int,
9kp2 int,
10col char(100),
11key(kp1, kp2)
12);
13insert into t2 select a, a, a from t1;
14select engine from information_schema.tables
15where table_schema=database() and table_name='t2';
16engine
17InnoDB
18explain
19select * from t2 where kp1 between 10 and 20 and kp2 +1 >100;
20id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
211	SIMPLE	t2	range	kp1	kp1	5	NULL	11	Using index condition
22set debug_sync='handler_index_cond_check SIGNAL at_icp_check WAIT_FOR go';
23select * from t2 where kp1 between 10 and 20 and kp2 +1 >100;
24connect  con1, localhost, root,,;
25connection con1;
26set debug_sync='now WAIT_FOR at_icp_check';
27kill query $target_id;
28set debug_sync='now SIGNAL go';
29connection default;
30ERROR 70100: Query execution was interrupted
31set debug_sync='RESET';
32disconnect con1;
33drop table t0,t1,t2;
34set default_storage_engine=default;
35