1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-31742 incorrect examined rows in case of stored function usage

The counter is global so we do not need add backup to it
if we do not zero it after taking the backup.
This commit is contained in:
Oleksandr Byelkin
2023-07-19 16:14:39 +02:00
parent 2bf291ba59
commit 89a493d64c
5 changed files with 128 additions and 13 deletions

View File

@ -5603,7 +5603,6 @@ void THD::restore_sub_statement_state(Sub_statement_state *backup)
The following is added to the old values as we are interested in the
total complexity of the query
*/
inc_examined_row_count(backup->examined_row_count);
cuted_fields+= backup->cuted_fields;
DBUG_VOID_RETURN;
}