• Georgi Kodinov's avatar
    Bug #52711: Segfault when doing EXPLAIN SELECT with · bf027be0
    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.
    bf027be0
subselect.test 128 KB