• Varun Gupta's avatar
    MDEV-11274: Executing EXPLAIN of complex query over join limit causes server to crash · bdab8b74
    Varun Gupta authored
    For this case we have a view that is mergeable but we are not able to merge it in the
    parent select because that would exceed the maximum tables allowed in the join list, so we
    materialise this view
    TABLE_LIST::dervied is NULL for such views, it is only set for views which have ALGORITHM=TEMPTABLE
    Fixed by making sure TABLE_LIST::derived is set for views that could not be merged
    bdab8b74
view.test 145 KB