We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a31558 + 08e9293 commit ffb31aaCopy full SHA for ffb31aa
1 file changed
sql/binlog.cc
@@ -8146,7 +8146,9 @@ int THD::decide_logging_format(TABLE_LIST *tables)
8146
given statement.
8147
*/
8148
if (!lex->is_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_INSERT_TWO_KEYS) &&
8149
- lex->sql_command == SQLCOM_INSERT && lex->duplicates == DUP_UPDATE)
+ lex->sql_command == SQLCOM_INSERT &&
8150
+ /* Duplicate key update is not supported by INSERT DELAYED */
8151
+ get_command() != COM_DELAYED_INSERT && lex->duplicates == DUP_UPDATE)
8152
{
8153
uint keys= table->table->s->keys, i= 0, unique_keys= 0;
8154
for (KEY* keyinfo= table->table->s->key_info;
0 commit comments