1
0
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:
antony@ltantony.mysql.com
2005-05-07 13:31:37 +01:00
parent 6b10b26005
commit 1ebc9e37ea
4 changed files with 30 additions and 0 deletions

View File

@@ -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;
}