diff options
author | unknown <sanja@askmonty.org> | 2013-10-17 19:01:57 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-10-17 19:01:57 +0300 |
commit | 8f4eb208d2988354f34b9a99e500c5c82d86ffbd (patch) | |
tree | cfdf6b4ff5ab81a85cfaff5580d22b3d646cc324 /sql/sql_cache.cc | |
parent | d21f9bab3391e7fb0913d14cd77cb2832475927e (diff) | |
parent | b88bf50ec138fbe3844a5859d884347c413dbf0d (diff) | |
download | mariadb-git-8f4eb208d2988354f34b9a99e500c5c82d86ffbd.tar.gz |
merge 10.0-base -> 10.0
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r-- | sql/sql_cache.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 35285501fba..97034878eef 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -2132,9 +2132,13 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d", } #endif /*!EMBEDDED_LIBRARY*/ - thd->limit_found_rows = query->found_rows(); + thd->set_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->get_sent_row_count()) + status_var_increment(thd->status_var.empty_queries); + else + status_var_add(thd->status_var.rows_sent, thd->get_sent_row_count()); /* End the statement transaction potentially started by an |