summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-09-06 15:00:35 +0500
committerunknown <ramil@mysql.com>2005-09-06 15:00:35 +0500
commit811c6d216ec224a019dad5a99e356720677b6d22 (patch)
treec261ab180af03ac30a8a8be7a06d6b62b1ee74ee /sql/sql_cache.cc
parent2a0f9f33ed8a6f509807cbfd18de5f6f88f4ed6d (diff)
downloadmariadb-git-811c6d216ec224a019dad5a99e356720677b6d22.tar.gz
fix (bug #10303: Misleading Last_query_cost value).
sql/sql_cache.cc: fix (bug #10303: Misleading Last_query_cost value). set the last_query_cost to 0.0 in case we use the query cache.
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 81eed413a8e..828a9c4d15c 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1178,6 +1178,7 @@ sql mode: 0x%lx, sort len: %lu, conncat len: %lu",
#endif /*!EMBEDDED_LIBRARY*/
thd->limit_found_rows = query->found_rows();
+ thd->status_var.last_query_cost= 0.0;
BLOCK_UNLOCK_RD(query_block);
DBUG_RETURN(1); // Result sent to client