• dlenev@mockturtle.local's avatar
    Fix for bug bug#23651 "Server crashes when trigger which uses · dd1a4f57
    dlenev@mockturtle.local authored
    stored function invoked from different connections".
    
    Invocation of trigger which was using stored function from different
    connections caused server crashes (for non-debug server this happened
    in highly concurrent environment, but debug server failed on assertion
    in relatively simple scenario).
    
    Item_func_sp was not safe to use in triggers (in other words for
    re-execution from different threads) as artificial TABLE object
    pointed by Item_func_sp::dummy_table referenced incorrect THD
    object. To fix the problem we force re-initialization of this
    object for each re-execution of statement.
    dd1a4f57
trigger.test 47.1 KB