1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Don't increment 'Empty_queries' for queries with errors.

This commit is contained in:
Monty
2016-09-15 22:02:32 +03:00
parent 7ca60dd842
commit 6c1c27ea11
3 changed files with 18 additions and 1 deletions

View File

@@ -6359,7 +6359,7 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
}
}
/* Count number of empty select queries */
if (!thd->get_sent_row_count())
if (!thd->get_sent_row_count() && !res)
status_var_increment(thd->status_var.empty_queries);
else
status_var_add(thd->status_var.rows_sent, thd->get_sent_row_count());