summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index ae5c5803545..6ff7085f740 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -5278,10 +5278,7 @@ bool lock_tables(THD *thd, TABLE_LIST *tables, uint count,
*/
if (thd->variables.binlog_format != BINLOG_FORMAT_ROW && tables &&
has_write_table_with_auto_increment(thd->lex->first_not_own_table()))
- {
- thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_TWO_AUTOINC_COLUMNS);
- thd->set_current_stmt_binlog_format_row_if_mixed();
- }
+ thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_AUTOINC_COLUMNS);
}
DEBUG_SYNC(thd, "before_lock_tables_takes_lock");