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