• Guangbao Ni's avatar
    BUG#41980 SBL, INSERT .. SELECT .. LIMIT = ERROR, even when @@SQL_LOG_BIN is 0 ! · 58dfaa8b
    Guangbao Ni authored
          
    When binlog_format is STATEMENT and the statement is unsafe before,
    the unsafe warning/error message was issued without checking
    whether the SQL_LOG_BIN was turned on or not.
          
    Fixed with adding a sql_log_bin_toplevel flag in THD to check
    whether SQL_LOG_BIN is ON in current session whatever the current is in sp or not.
    58dfaa8b
sql_class.h 94.2 KB