• Alfranio Correia's avatar
    BUG#51277 SUPER_ACL should be checked unconditionally (binlog_format and binlog_direct) · 2173e618
    Alfranio Correia authored
    SUPER_ACL should be checked unconditionally while verifying if the binlog_format
    or the binlog_direct_non_transactional_updates might be changed.
    
    Roughly speaking, both session values cannot be changed in the context of a
    transaction or a stored function. Note that changing the global value does
    not cause any effect until a new connection is created.
    
    So, we fixed the problem by first checking the permissions and right after further
    verifications are ignored if the global value is being updated. In this patch, we
    also re-structure the test case to make it more readable.
    2173e618
binlog_switch_inside_trans.test 6.16 KB