summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorramil@mysql.com <>2005-09-06 15:00:35 +0500
committerramil@mysql.com <>2005-09-06 15:00:35 +0500
commit68acf8fdea1af29bccc01bc251878989540a9aeb (patch)
treec261ab180af03ac30a8a8be7a06d6b62b1ee74ee /sql/sql_cache.cc
parentc601bb87f856728a6429b9323914df59a6f87479 (diff)
downloadmariadb-git-68acf8fdea1af29bccc01bc251878989540a9aeb.tar.gz
fix (bug #10303: Misleading Last_query_cost value).
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