summaryrefslogtreecommitdiff
path: root/mysql-test/r/union.result
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2011-05-05 15:24:28 +0300
committerunknown <timour@askmonty.org>2011-05-05 15:24:28 +0300
commitee3b7b56e4b854a777d14ba4b26cd457a1aba482 (patch)
tree7df88709cf948a83dd6fde40c8bb4450b91e4573 /mysql-test/r/union.result
parentf48784754abc63b8b40fce025ac72cf9507c11ec (diff)
downloadmariadb-git-ee3b7b56e4b854a777d14ba4b26cd457a1aba482.tar.gz
Fix LP BUG#772309
Analysis: The method st_select_lex::optimize_unflattened_subqueries() incorrectly propagated to each subquery the complete select_options flag set for the whole query. Among other flags in select_options, this propagated incorrectly the STRAIGHT_JOIN flag from the upper query to the subquery. Solution: During EXPLAIN set only the SELECT_DESCRIBE bit in the select_options of the subquery.
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 b1832dadab4..136c76a198b 100644
--- a/mysql-test/r/union.result
+++ b/mysql-test/r/union.result
@@ -1632,7 +1632,7 @@ ORDER BY (SELECT a FROM t2 WHERE b = 12);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00
2 UNION t1 ALL NULL NULL NULL NULL 2 100.00
-NULL UNION <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
+NULL UNION RESULT <union1,2> ALL NULL NULL NULL NULL NULL NULL Using filesort
3 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2 100.00 Using where
Warnings:
Note 1276 Field or reference 'a' of SELECT #3 was resolved in SELECT #-1