• andrey@example.com's avatar
    Fix for bug#21795: SP: sp_head::is_not_allowed_in_function() contains · f115ecf8
    andrey@example.com authored
    erroneous check
    
    Problem: Actually there were two problems in the server code. The check
    for SQLCOM_FLUSH in SF/Triggers were not according to the existing
    architecture which uses sp_get_flags_for_command() from sp_head.cc .
    This function was also missing a check for SQLCOM_FLUSH which has a
    problem combined with prelocking. This changeset fixes both of these
    deficiencies as well as the erroneous check in
    sp_head::is_not_allowed_in_function() which was a copy&paste error.
    f115ecf8
sp_head.cc 91.9 KB