mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
For all "UNION ALL" queries, the field rows_examined in the slow query log is always being set to 0. However, this is not the case with UNION queries although both UNION, and UNION ALL share the same code. The problem is that for UNION ALL queries, rows_examined field in the thd object is not updated to the actual processed rows, although they are being tracked in the sql_union.cc Later, when the thd object is used to dump the examined rows to the slow query log, it was only writing 0, as thd object was never updated with the processed rows count. This PR addresses the concern to write rows_examined field correctly for UNION_ALL queries to the slow query log.
84 KiB
84 KiB