summaryrefslogtreecommitdiff
path: root/mysql-test/t/innodb_mrr_cpk.test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-06-22 22:38:52 +0400
committerSergey Petrunya <psergey@askmonty.org>2010-06-22 22:38:52 +0400
commitb45748f058e00b941d7b737cc43dcc3ad237d5d3 (patch)
tree30f6ef8a641086304421be5e63ad6ce5c84d1af7 /mysql-test/t/innodb_mrr_cpk.test
parent16e197f5b10fdee23703b94c5549bc17cd81c6f8 (diff)
downloadmariadb-git-b45748f058e00b941d7b737cc43dcc3ad237d5d3.tar.gz
MWL#121: DS-MRR support for clustered primary keys
- Fix the code to work with IndexConditionPushdown+BKA (EXPLAIN is still incorrect, see comments in the patch) - Test coverage for ICP+BKA
Diffstat (limited to 'mysql-test/t/innodb_mrr_cpk.test')
-rw-r--r--mysql-test/t/innodb_mrr_cpk.test13
1 files changed, 8 insertions, 5 deletions
diff --git a/mysql-test/t/innodb_mrr_cpk.test b/mysql-test/t/innodb_mrr_cpk.test
index 84b37840880..69eeef9618f 100644
--- a/mysql-test/t/innodb_mrr_cpk.test
+++ b/mysql-test/t/innodb_mrr_cpk.test
@@ -112,21 +112,24 @@ insert into t2 values (11,33), (11,22), (11,11);
explain select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
+# Check a real resultset for comaprison:
set join_cache_level=0;
select * from t1, t2 where t1.a=t2.a and t1.b=t2.b;
set join_cache_level=6;
-drop table t1,t2;
#
# Check that Index Condition Pushdown (BKA) actually works:
#
+explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
+select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
-# TODO
+set optimizer_switch='index_condition_pushdown=off';
+explain select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
+select * from t1, t2 where t1.a=t2.a and t2.b + t1.b > 100;
+set optimizer_switch='index_condition_pushdown=on';
-#
-# Check that record-check-func is done:
-#
+drop table t1,t2;
set @@join_cache_level= @save_join_cache_level;
set storage_engine=@save_storage_engine;