summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorlenz@mysql.com <>2003-02-19 15:08:29 +0100
committerlenz@mysql.com <>2003-02-19 15:08:29 +0100
commit8a272349b984cfeb8671a88ac68aa5fc32ee8458 (patch)
tree2b5ef9851b2c6523a904765ae066e60275171cbd /sql/sql_update.cc
parent7a6d8edfd7ebe6ac82a531009fdb5086a0237790 (diff)
downloadmariadb-git-8a272349b984cfeb8671a88ac68aa5fc32ee8458.tar.gz
Applied Sinisa's patch:
"A fix for non-releasing locks for multi table updates and multi table deletes with InnoDB tables."
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 9817dcd2be5..d1a2d4d5524 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -400,7 +400,7 @@ int mysql_multi_update(THD *thd,
res= mysql_select(thd,table_list,total_list,
conds, (ORDER *) NULL, (ORDER *)NULL, (Item *) NULL,
(ORDER *)NULL,
- options | SELECT_NO_JOIN_CACHE,
+ options | SELECT_NO_JOIN_CACHE | SELECT_NO_UNLOCK,
result);
delete result;
DBUG_RETURN(res);