• Igor Babaev's avatar
    MDEV-16940 Server crashes in unsafe_key_update upon attempt to update view · b22285e4
    Igor Babaev authored
               through 2nd execution of SP
    
    This bug caused a server crash on the second call of any stored procedure
    that contained an UPDATE statement over a multi-table view reporting an
    error message at the prepare stage.
    On the first call of the stored procedure after reporting an error at
    the preparation stage of the UPDATE statement finished without calling
    the function SELECT_LEX::save_prep_leaf_tables() for the SELECT used as
    the definition of the view. This left the SELECT_LEX structure used by
    the UPDATE statement in an inconsistent state for second call of the stored
    procedure.
    
    Approved by Oleksandr Byelkin <sanja@mariadb.com>
    b22285e4
view.result 212 KB