• unknown's avatar
    Fix LP BUG#772309 · ee3b7b56
    unknown authored
    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.
    ee3b7b56
union.result 48.1 KB