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