mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
bug#18487 UPDATE IGNORE not supported for unique constraint violation of non-primary key: handle INSERT ... ON DUPLICATE KEY UPDATE
This commit is contained in:
parent
eb36371ac3
commit
1cc765b311
1 changed files with 3 additions and 2 deletions
|
|
@ -2388,9 +2388,10 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data)
|
|||
DBUG_ENTER("update_row");
|
||||
|
||||
/*
|
||||
* If IGNORE the ignore constraint violations on primary and unique keys
|
||||
* If IGNORE the ignore constraint violations on primary and unique keys,
|
||||
* but check that it is not part of INSERT ... ON DUPLICATE KEY UPDATE
|
||||
*/
|
||||
if (m_ignore_dup_key)
|
||||
if (m_ignore_dup_key && thd->lex->sql_command != SQLCOM_INSERT)
|
||||
{
|
||||
int peek_res= peek_indexed_rows(new_data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue