• Galina Shalygina's avatar
    MDEV-16803: Pushdown Item_func_in item that uses vectors in several SELECTs · 55163ba1
    Galina Shalygina authored
    The bug appears because of the Item_func_in::build_clone() method.
    The 'array' field for the Item_func_in item that can be pushed into
    the materialized view/derived table was built in the wrong way.
    It becomes lame after the pushdown of the condition into the first
    SELECT that defines that view/derived table. The server crashes in
    the pushdown into the next SELECT while trying to use already lame
    'array' field.
    
    To fix it Item_func_in::build_clone() was changed.
    55163ba1
derived_cond_pushdown.test 58.7 KB