summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-10-17 19:01:57 +0300
committerunknown <sanja@askmonty.org>2013-10-17 19:01:57 +0300
commit8f4eb208d2988354f34b9a99e500c5c82d86ffbd (patch)
treecfdf6b4ff5ab81a85cfaff5580d22b3d646cc324 /sql/sql_parse.cc
parentd21f9bab3391e7fb0913d14cd77cb2832475927e (diff)
parentb88bf50ec138fbe3844a5859d884347c413dbf0d (diff)
downloadmariadb-git-8f4eb208d2988354f34b9a99e500c5c82d86ffbd.tar.gz
merge 10.0-base -> 10.0
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 8f4b7f98a81..0353ec7fde9 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -5176,7 +5176,8 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
/* Count number of empty select queries */
if (!thd->get_sent_row_count())
status_var_increment(thd->status_var.empty_queries);
- status_var_add(thd->status_var.rows_sent, thd->get_sent_row_count());
+ else
+ status_var_add(thd->status_var.rows_sent, thd->get_sent_row_count());
return res;
}
@@ -6340,6 +6341,8 @@ void mysql_parse(THD *thd, char *rawbuf, uint length,
thd->m_statement_psi=
MYSQL_REFINE_STATEMENT(thd->m_statement_psi,
sql_statement_info[SQLCOM_SELECT].m_key);
+ status_var_increment(thd->status_var.com_stat[SQLCOM_SELECT]);
+ thd->update_stats();
}
DBUG_VOID_RETURN;
}