summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-11-24 21:44:25 +0200
committerunknown <monty@mashka.mysql.fi>2002-11-24 21:44:25 +0200
commitbe5d04e8fced4176ec705b1188a6075e1253d9ca (patch)
treebfcde66d89b433e74a73c08683ef369eb5039814 /sql/handler.cc
parent79cdd8773c365d80e6ed528668dfb03eda7406b3 (diff)
parentf81084a2e0003f2d6ef1d263d8c312903966e8ff (diff)
downloadmariadb-git-be5d04e8fced4176ec705b1188a6075e1253d9ca.tar.gz
Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0
sql/opt_range.cc: Auto merged
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index f07e90d2eb9..c4e742ef519 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -314,7 +314,7 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
}
#endif
#ifdef HAVE_QUERY_CACHE
- if (transaction_commited)
+ if (transaction_commited && thd->transaction.changed_tables)
query_cache.invalidate(thd->transaction.changed_tables);
#endif /*HAVE_QUERY_CACHE*/
if (error && trans == &thd->transaction.all && mysql_bin_log.is_open())