summaryrefslogtreecommitdiff
path: root/mysql-test/r/union.result
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2007-05-04 18:06:06 +0300
committergkodinov/kgeorge@magare.gmz <>2007-05-04 18:06:06 +0300
commit306371a8508606642bd606aa68b41ad9e3e1fed5 (patch)
tree29f385f4eeb8af49da1b7ee638a6f077dbd88785 /mysql-test/r/union.result
parent19b9c7a8cda743d45464c5b1fbd571de073e26ea (diff)
downloadmariadb-git-306371a8508606642bd606aa68b41ad9e3e1fed5.tar.gz
bug #27531: 5.1 part of the fix:
- added join cache indication in EXPLAIN (Extra column). - prefer filesort over full scan over index for ORDER BY (because it's faster). - when switching from REF to RANGE because RANGE uses longer key turn off sort on the head table only as the resulting RANGE access is a candidate for join cache and we don't want to disable it by sorting on the first table only.
Diffstat (limited to 'mysql-test/r/union.result')
-rw-r--r--mysql-test/r/union.result2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/r/union.result b/mysql-test/r/union.result
index 275f3357c65..acf237bf125 100644
--- a/mysql-test/r/union.result
+++ b/mysql-test/r/union.result
@@ -499,7 +499,7 @@ a b
explain (select * from t1 where a=1 and b=10) union (select straight_join t1.a,t2.a from t1,t2 where t1.a=t2.a);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
-2 UNION t1 index PRIMARY PRIMARY 4 NULL 4 Using index
+2 UNION t1 index PRIMARY PRIMARY 4 NULL 4 Using index; Using join cache
2 UNION t2 index PRIMARY PRIMARY 4 NULL 4 Using where; Using index
NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL
explain (select * from t1 where a=1) union (select * from t1 where b=1);