• Igor Babaev's avatar
    Fixed LP bug #881318. · a8f7c03c
    Igor Babaev authored
    If a materialized derived table / view is empty then for this table
    the value of file->ref is 0. This was not taken into account by
    the function JOIN_CACHE::write_record_data. As a result a query
    using an empty materialized derived tables as inner tables of outer
    joins and IN subqueries in WHERE conditions could cause server crashes
    when the optimizer employed join caches and duplicate elimination for
    semi-joins.
    a8f7c03c
subselect_sj2.test 42.8 KB