MySQL 8.0.40
Source Code Documentation
|
Silence all errors and warnings reported when performing a write to a log table. More...
Public Member Functions | |
Silence_log_table_errors () | |
bool | handle_condition (THD *, uint, const char *, Sql_condition::enum_severity_level *, const char *msg) override |
Handle a sql condition. More... | |
const char * | message () const |
Private Attributes | |
char | m_message [MYSQL_ERRMSG_SIZE] |
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 |
Silence all errors and warnings reported when performing a write to a log table.
Errors and warnings are not reported to the client or SQL exception handlers, so that the presence of logging does not interfere and affect the logic of an application.
|
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 |