summaryrefslogtreecommitdiff
path: root/mysql-test/t/distinct.test
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-12-15 14:26:59 -0800
committerIgor Babaev <igor@askmonty.org>2011-12-15 14:26:59 -0800
commita910e8ef5b5d33cd600acaba9ec3cc8c49881196 (patch)
treeceab0338af1b7b100b069fec4e6be7cf31b48a44 /mysql-test/t/distinct.test
parentf5dac20f38fcf581b0616562cd2da21fb8c50218 (diff)
downloadmariadb-git-a910e8ef5b5d33cd600acaba9ec3cc8c49881196.tar.gz
Made join_cache_level == 2 by default.
Diffstat (limited to 'mysql-test/t/distinct.test')
-rw-r--r--mysql-test/t/distinct.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/distinct.test b/mysql-test/t/distinct.test
index 796732fa097..0f0cbcf26d0 100644
--- a/mysql-test/t/distinct.test
+++ b/mysql-test/t/distinct.test
@@ -158,6 +158,10 @@ create table t3 (
insert into t1 values (1,'yes'), (2,'no');
insert into t2 values (1,1);
insert into t3 values (1,1);
+
+set @save_join_cache_level=@@join_cache_level;
+set join_cache_level=1;
+
EXPLAIN
SELECT DISTINCT
t1.id
@@ -195,6 +199,8 @@ WHERE
AND ((t1.id=j_lj_t3.id AND t3_lj.id IS NULL) OR (t1.id=t3.id AND t3.idx=2));
drop table t1,t2,t3;
+set join_cache_level=@save_join_cache_level;
+
#
# Test using DISTINCT on a function that contains a group function
# This also test the case when one doesn't use all fields in GROUP BY.