• kaa@mbp.'s avatar
    Fix for bug #33389: Selecting from a view into a table from within SP · 97c105cc
    kaa@mbp. authored
                        or trigger crashes server
    
    Under some circumstances a combination of VIEWs, subselects with outer
    references and PS/SP/triggers could lead to use of uninitialized memory
    and server crash as a result.
    
    Fixed by changing the code in Item_field::fix_fields() so that in cases
    when the field is a VIEW reference, we first check whether the field
    is also an outer reference, and mark it appropriately before returning.
    97c105cc
view.result 106 KB