summaryrefslogtreecommitdiff
path: root/mysql-test/r/maria_icp.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/maria_icp.result')
-rw-r--r--mysql-test/r/maria_icp.result27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/r/maria_icp.result b/mysql-test/r/maria_icp.result
index 2d2b4d0c1f7..97b10fe496c 100644
--- a/mysql-test/r/maria_icp.result
+++ b/mysql-test/r/maria_icp.result
@@ -814,5 +814,32 @@ COUNT(*)
1478
SET optimizer_switch=@save_optimizer_switch;
DROP TABLE t1,t2;
+# check "Handler_pushed" status varuiables
+CREATE TABLE t1 (
+c1 CHAR(1),
+c2 CHAR(1),
+KEY (c1)
+);
+INSERT INTO t1 VALUES ('3', '3'),('4','4'),('5','5');
+flush status;
+show status like "Handler_icp%";
+Variable_name Value
+Handler_icp_attempts 0
+Handler_icp_match 0
+SELECT * FROM t1 FORCE INDEX(c1) WHERE (c1='3' or c1='4') and c1 % 2 = 0 ;
+c1 c2
+4 4
+show status like "Handler_icp%";
+Variable_name Value
+Handler_icp_attempts 2
+Handler_icp_match 1
+SELECT * FROM t1 WHERE (c2='3' or c2='4') and c2 % 2 = 0 ;
+c1 c2
+4 4
+show status like "Handler_icp%";
+Variable_name Value
+Handler_icp_attempts 2
+Handler_icp_match 1
+DROP TABLE t1;
set storage_engine= @save_storage_engine;
set optimizer_switch=@maria_icp_tmp;