1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

MDEV-38683 SIGSEGV (dbg), SIGABRT or ER_EMPTY_QUERY when using ROWS EXAMINED with log_output=TABLE

This patch contain unique code for 12.3 for this issue.
The test cases will come from the push into the 11.4 branch
This commit is contained in:
Monty
2026-02-04 14:41:59 +02:00
parent 92a49263e1
commit 5d26d515fc
2 changed files with 6 additions and 1 deletions

View File

@@ -2512,6 +2512,11 @@ resume:
/* Check that some variables are reset properly */
DBUG_ASSERT(thd->abort_on_warning == 0);
thd->lex->restore_set_statement_var();
/*
Reset limit_rows_examined_cnt as it may be used by general_log_write()
before next lex::start() call.
*/
thd->lex->limit_rows_examined_cnt= ULONGLONG_MAX;
DBUG_RETURN(error?DISPATCH_COMMAND_CLOSE_CONNECTION: DISPATCH_COMMAND_SUCCESS);
}