mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
SQL: replication fixes [fixes #234]
This commit is contained in:
@ -6052,6 +6052,24 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class ScopedStatementReplication
|
||||
{
|
||||
public:
|
||||
ScopedStatementReplication(THD *thd) : thd(thd)
|
||||
{
|
||||
if (thd)
|
||||
saved_binlog_format= thd->set_current_stmt_binlog_format_stmt();
|
||||
}
|
||||
~ScopedStatementReplication()
|
||||
{
|
||||
if (thd)
|
||||
thd->restore_stmt_binlog_format(saved_binlog_format);
|
||||
}
|
||||
|
||||
private:
|
||||
enum_binlog_format saved_binlog_format;
|
||||
THD *thd;
|
||||
};
|
||||
|
||||
#endif /* MYSQL_SERVER */
|
||||
#endif /* SQL_CLASS_INCLUDED */
|
||||
|
Reference in New Issue
Block a user