summaryrefslogtreecommitdiff
path: root/mysql-test/t/myisam_icp.test
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2012-05-23 11:55:14 +0400
committerSergey Petrunya <psergey@askmonty.org>2012-05-23 11:55:14 +0400
commit8978675b338620ed3c7e59c2f880a73643242f58 (patch)
tree7acb5a1b6024bf75d8331cb6c03271f15bdb97c5 /mysql-test/t/myisam_icp.test
parent1d3ba8a791c50b7fe7036470d5f26e3f6525156d (diff)
downloadmariadb-git-8978675b338620ed3c7e59c2f880a73643242f58.tar.gz
BUG#1000051: Query with simple join and ORDER BY takes thousands times longer when run with ICP
- Correct testcases.
Diffstat (limited to 'mysql-test/t/myisam_icp.test')
-rw-r--r--mysql-test/t/myisam_icp.test9
1 files changed, 6 insertions, 3 deletions
diff --git a/mysql-test/t/myisam_icp.test b/mysql-test/t/myisam_icp.test
index ce65cdab3f0..508c282b1dc 100644
--- a/mysql-test/t/myisam_icp.test
+++ b/mysql-test/t/myisam_icp.test
@@ -269,13 +269,16 @@ create table t0 (a int);
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
create table t1 (a int, col int, filler char(100), key(a, col));
-insert into t1 select A.a + 10*B.a +100*C.a, 1234, 'filler' from t0 A, t0 B, t0 C;
+insert into t1 select A.a + 10*B.a, 1234, 'filler' from t0 A, t0 B, t0 C;
+set @tmp_10000051= @@optimizer_switch;
+set optimizer_switch='mrr=off';
--echo # Must not use ICP:
-explain select * from t1 where a between 10 and 20 order by a, col desc;
+explain select * from t1 where a between 5 and 8 order by a desc, col desc;
+set optimizer_switch= @tmp_10000051;
--echo # Must not use ICP:
-explain select * from t0,t1 where t1.a=t0.a and t1.col<123;
+explain select * from t1 where a=3 and col > 500 order by a desc, col desc;
drop table t0, t1;