5691
5691
has_write_table_with_auto_increment_and_select(tables))
5692
5692
thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_WRITE_AUTOINC_SELECT);
5694
5720
/* We have to emulate LOCK TABLES if we are statement needs prelocking. */
5695
5721
if (thd->lex->requires_prelocking())