summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-10-16 20:24:02 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-10-16 20:24:02 +0400
commit70f066eba48f2d6248c9bb912fd28bc4a3091b8e (patch)
tree13a57b7db9b45fa0ad4f259e91170b5ff3a18bea /sql/sql_cache.cc
parent3bf20bc7de3e9016b62705904933d30d2bd97fd1 (diff)
parent73f8b4dac263964482b532199151c87596f191b7 (diff)
downloadmariadb-git-70f066eba48f2d6248c9bb912fd28bc4a3091b8e.tar.gz
Merge 5.5 -> 10.0-base
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index bcc18d316c8..debd06db455 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2074,9 +2074,13 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
}
#endif /*!EMBEDDED_LIBRARY*/
- thd->limit_found_rows = query->found_rows();
+ thd->sent_row_count= thd->limit_found_rows = query->found_rows();
thd->status_var.last_query_cost= 0.0;
thd->query_plan_flags= (thd->query_plan_flags & ~QPLAN_QC_NO) | QPLAN_QC;
+ if (!thd->sent_row_count)
+ status_var_increment(thd->status_var.empty_queries);
+ else
+ status_var_add(thd->status_var.rows_sent, thd->sent_row_count);
/*
End the statement transaction potentially started by an