• Igor Babaev's avatar
    MDEV-17354 Server crashes in add_key_field / .. / Item_func_null_predicate::add_key_fields · 6d29c852
    Igor Babaev authored
               upon INSERT .. SELECT
    
    The function Item *Item_direct_view_ref::derived_field_transformer_for_where()
    erroneously did not strip off ref wrappers from references to materialized
    derived tables / views. As a result the expressions that contained some
    references of the type Item_direct_view_ref to columns of a materialized
    derived table / view V were pushed into V incorrectly. This could cause
    crashes for some INSERT ... SELECT statements.
    6d29c852
item.cc 292 KB