• Georgi Kodinov's avatar
    Bug #52711: Segfault when doing EXPLAIN SELECT with · 93013ae6
    Georgi Kodinov authored
    union...order by (select... where...)
    
    The problem is mysql is trying to materialize and 
    cache the scalar sub-queries at JOIN::optimize
    even for EXPLAIN where the number of columns is 
    totally different from what's expected.
    Fixed by not executing the scalar subqueries 
    for EXPLAIN.
    93013ae6
subselect.result 163 KB