summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-11-17 22:45:07 +0200
committerbell@sanja.is.com.ua <>2003-11-17 22:45:07 +0200
commit5327ec1d09223209411c8329180e3f29267e4427 (patch)
tree0afc7fc182790f9282c8f5ecaaf1f5820b073d45 /sql/sql_delete.cc
parent74165e729c96dda680f56de8263ba5e841ebbd5d (diff)
downloadmariadb-git-5327ec1d09223209411c8329180e3f29267e4427.tar.gz
IGNORE option was added for DELETE statement (WL#1334)
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 2985f7e04a0..a41831d1317 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -66,6 +66,9 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order,
DBUG_RETURN(1);
}
+ if (thd->lex.duplicates == DUP_IGNORE)
+ thd->lex.select_lex.no_error= 1;
+
/* Test if the user wants to delete all rows */
if (!using_limit && const_cond && (!conds || conds->val_int()) &&
!(specialflag & (SPECIAL_NO_NEW_FUNC | SPECIAL_SAFE_MODE)))