mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
Fixed issue with slow query logging where examined rows where wrong
Reset 'examined_rows_count' in union to not count same rows twice mysql-test/r/subselect_mat_cost.result: Test also slow query logging mysql-test/t/subselect_mat_cost.test: Test also slow query logging sql/sql_union.cc: Reset 'examined_rows_count' in union to not count same rows twice
This commit is contained in:
parent
22e793639a
commit
f0c6ce9ade
3 changed files with 7 additions and 0 deletions
|
|
@ -645,6 +645,7 @@ bool st_select_lex_unit::exec()
|
|||
if (!saved_error)
|
||||
{
|
||||
examined_rows+= thd->examined_row_count;
|
||||
thd->examined_row_count= 0;
|
||||
if (union_result->flush())
|
||||
{
|
||||
thd->lex->current_select= lex_select_save;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue