• Alexey Kopytov's avatar
    Bug #48419: another explain crash.. · 96366e11
    Alexey Kopytov authored
    WHERE predicates containing references to empty tables in a
    subquery were handled incorrectly by the optimizer when
    executing EXPLAIN. As a result, the optimizer could try to
    evaluate such predicates rather than just stop with
    "Impossible WHERE noticed after reading const tables" as 
    it would do in a non-subquery case. This led to valgrind 
    errors and crashes.
    
    Fixed the code checking the above condition so that subqueries
    are not excluded and hence are handled in the same way as top
    level SELECTs.
    96366e11
ps.result 93.5 KB