mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Remove DUP_IGNORE from enum_duplicates and instead use a separate ignore flag
This allows use to use INSERT IGNORE ... ON DUPLICATE ...
This commit is contained in:
@@ -57,8 +57,7 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, SQL_LIST *order,
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
if (thd->lex->duplicates == DUP_IGNORE)
|
||||
thd->lex->select_lex.no_error= 1;
|
||||
thd->lex->select_lex.no_error= thd->lex->ignore;
|
||||
|
||||
/* Test if the user wants to delete all rows */
|
||||
if (!using_limit && const_cond && (!conds || conds->val_int()) &&
|
||||
|
||||
Reference in New Issue
Block a user