• unknown's avatar
    Make mysqlbinlog omit redundant `use` around BEGIN/SAVEPOINT/COMMIT/ROLLBACK in 5.0 binlogs · a5b05b45
    unknown authored
    This is a merge of percona patch mysqlbinlog_fix.patch.
    
    Apparently, MySQL 5.0 does not flag BEGIN/SAVEPOINT/COMMIT/ROLLBACK statements
    in its binlogs with LOG_EVENT_SUPPRESS_USE_F like 5.1+ does. This causes
    unnecessary `use` statements around such statements when the binlog is dumped
    by mysqlbinlog.
    
    Fix by always suppressing the output of `use` for these statements.
    a5b05b45
mysqlbinlog.result 22.5 KB