MySQL 8.4.2
Source Code Documentation
|
A error handler to convert all the errors except deadlock, lock wait timeout and stack overrun to ER_VIEW_INVALID while updating views metadata. More...
Public Member Functions | |
bool | handle_condition (THD *, uint sql_errno, const char *, Sql_condition::enum_severity_level *, const char *msg) override |
Handle a sql condition. More... | |
bool | is_view_invalid () const |
bool | is_view_error_handled () const |
View_metadata_updater_error_handler () | |
~View_metadata_updater_error_handler () override | |
Private Attributes | |
ErrorHandlerFunctionPointer | m_old_error_handler_hook |
uint | m_sql_errno = 0 |
bool | m_log_error = false |
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 |
A error handler to convert all the errors except deadlock, lock wait timeout and stack overrun to ER_VIEW_INVALID while updating views metadata.
Even a warning ER_NO_SUCH_USER generated for non-existing user is handled with the error handler.
|
inline |
|
inlineoverride |
|
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 |
|
inline |
|
private |
|
private |
|
private |