summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-04-29 12:24:14 +0300
committerunknown <monty@hundin.mysql.fi>2002-04-29 12:24:14 +0300
commit4c76a1c8961457d428e0f1734a9f239de1827260 (patch)
tree5622a481c28e42581626ad05e58e4afaab88bd0f /sql/sql_update.cc
parent2ddd3d219d2cc797b236faaab95449905b4402b2 (diff)
downloadmariadb-git-4c76a1c8961457d428e0f1734a9f239de1827260.tar.gz
Fixed that enable-reads-from-master and repl-parse-query works in option files.
Fixed slowdown problem on win98 Fixed syntax for ALTER TABLE .. RENAME Docs/manual.texi: changelog libmysql/libmysql.c: Fixed that enable-reads-from-master and repl-parse-query works in option files. myisam/ft_boolean_search.c: Portability fixes mysys/my_thr_init.c: cleanup sql/sql_base.cc: Fixed slowdown problem on win98 sql/sql_delete.cc: Removed compiler warnings sql/sql_insert.cc: Removed compiler warnings sql/sql_update.cc: Removed compiler warnings sql/sql_yacc.yy: Fixed syntax for ALTER TABLE .. RENAME vio/vio.c: Added test of OS2 vio/viosocket.c: cleanup
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index db520af61c1..f8a0d169d5a 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -324,7 +324,9 @@ int mysql_update(THD *thd,
thd->lock=0;
}
if (updated)
+ {
query_cache_invalidate3(thd, table_list, 1);
+ }
delete select;
if (error >= 0)
@@ -788,8 +790,9 @@ bool multi_update::send_eof()
sprintf(buff,ER(ER_UPDATE_INFO), (long) found, (long) updated,
(long) thd->cuted_fields);
if (updated)
+ {
query_cache_invalidate3(thd, update_tables, 1);
-
+ }
::send_ok(&thd->net,
(thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated,
thd->insert_id_used ? thd->insert_id() : 0L,buff);