MySQL 9.1.0
Source Code Documentation
|
Implements the error handler for SET_VAR hint. More...
#include <error_handler.h>
Public Member Functions | |
Set_var_error_handler (bool ignore_warn_arg) | |
bool | handle_condition (THD *, uint, const char *, Sql_condition::enum_severity_level *level, const char *) override |
Handle a sql condition. More... | |
void | reset_state () |
Private Attributes | |
bool | ignore_warn |
bool | ignore_subsequent_messages |
Additional Inherited Members | |
Protected Member Functions inherited from Internal_error_handler | |
Internal_error_handler () | |
Internal_error_handler * | prev_internal_handler () const |
virtual | ~Internal_error_handler ()=default |
Implements the error handler for SET_VAR hint.
For Sys_var_hint::update_vars handler accepts first warning or error. Subsequent error are ignored to avoid message duplication. For Sys_var_hint::restore_vars all warnings and errors are ignored since valid value is restored.
|
inline |
|
inlineoverridevirtual |
Handle a sql condition.
This method can be implemented by a subclass to achieve any of the following:
This mechanism is similar to C++ try/throw/catch:
THD::push_internal_handler()
,my_error()
, which invokes my_message_sql()
,THD::pop_internal_handler()
.thd | the calling thread |
sql_errno | the error number for the condition raised. |
sqlstate | the SQLSTATE for the condition raised. |
level | the severity level for the condition raised. |
msg | the error message for the condition raised. |
Implements Internal_error_handler.
|
inline |
|
private |
|
private |