summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-01-12 19:51:10 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-01-12 19:51:10 +0200
commite9b8c183a2cc53ea2fd12f1dacc9cd1d422fc47a (patch)
tree8371a3539e648f04af279a7e842c782b216e88af /sql/sql_update.cc
parent9f0c13f3943bf5a7aed921b56c39a7f3d2f8419b (diff)
downloadmariadb-git-e9b8c183a2cc53ea2fd12f1dacc9cd1d422fc47a.tar.gz
Some changes in multi-table deletes, with some speed-ups and
incorporations of the new stuff. When Monty approves / corrects it, I will "port" it to multi-table updates. sql/sql_insert.cc: A small bug fix sql/sql_update.cc: query cache invalidation
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 5e36d22744b..b9cf7478e0c 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -792,6 +792,8 @@ bool multi_update::send_eof()
char buff[80];
sprintf(buff,ER(ER_UPDATE_INFO), (long) found, (long) updated,
(long) thd->cuted_fields);
+ if (updated)
+ query_cache.invalidate(update_tables);
::send_ok(&thd->net,
(thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated,
thd->insert_id_used ? thd->insert_id() : 0L,buff);