1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

don't invoke error interceptors for fatal errors

and, again, *don't use thd->clear_error()*

this fixed main.sp_notembedded failure on various amd64 platforms
(where ER_STACK_OVERRUN_NEED_MORE happens to fire in open_stat_tables()
under Dummy_error_handler)
This commit is contained in:
Sergei Golubchik
2019-02-20 10:32:09 +01:00
parent 65ffea3924
commit 132216faf7
2 changed files with 2 additions and 26 deletions

View File

@ -1040,7 +1040,8 @@ Sql_condition* THD::raise_condition(uint sql_errno,
level= Sql_condition::WARN_LEVEL_ERROR;
}
if (handle_condition(sql_errno, sqlstate, &level, msg, &cond))
if (!is_fatal_error &&
handle_condition(sql_errno, sqlstate, &level, msg, &cond))
DBUG_RETURN(cond);
switch (level) {