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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user