mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Bug#9725 - "disapearing query/hang" and "unknown error" with "on duplicate key update"
INSERT IGNORE...UPDATE causes break in protocol or unknown error message. Fix so that protocol doesn't break by properly ignoring dups.
This commit is contained in:
@@ -632,7 +632,11 @@ int write_record(TABLE *table,COPY_INFO *info)
|
||||
if (fill_record(*info->update_fields, *info->update_values, 0))
|
||||
goto err;
|
||||
if ((error=table->file->update_row(table->record[1],table->record[0])))
|
||||
{
|
||||
if ((error == HA_ERR_FOUND_DUPP_KEY) && info->ignore)
|
||||
break;
|
||||
goto err;
|
||||
}
|
||||
info->updated++;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user