Skip to content

Commit ffb31aa

Browse files
author
Venkatesh Duggirala
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 4a31558 + 08e9293 commit ffb31aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sql/binlog.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8146,7 +8146,9 @@ int THD::decide_logging_format(TABLE_LIST *tables)
81468146
given statement.
81478147
*/
81488148
if (!lex->is_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_INSERT_TWO_KEYS) &&
8149-
lex->sql_command == SQLCOM_INSERT && lex->duplicates == DUP_UPDATE)
8149+
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)
81508152
{
81518153
uint keys= table->table->s->keys, i= 0, unique_keys= 0;
81528154
for (KEY* keyinfo= table->table->s->key_info;

0 commit comments

Comments
 (0)