MySQL 9.1.0
Source Code Documentation
|
An error handler that catches all non-OOM errors which can occur during parsing of trigger body. More...
Public Member Functions | |
Deprecated_trigger_syntax_handler () | |
bool | handle_condition (THD *thd, uint sql_errno, const char *, Sql_condition::enum_severity_level *, const char *message) override |
Handle a sql condition. More... | |
LEX_STRING * | get_trigger_name () |
const char * | get_error_message () |
Private Attributes | |
char | m_message [MYSQL_ERRMSG_SIZE] |
LEX_STRING * | m_trigger_name |
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 |
An error handler that catches all non-OOM errors which can occur during parsing of trigger body.
Such errors are ignored and corresponding error message is used to construct a more verbose error message which contains name of problematic trigger. This error message is later emitted when one tries to perform DML or some of DDL on this table. Also, if possible, grabs name of the trigger being parsed so it can be used to correctly drop problematic trigger.
|
inline |
|
inline |
|
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.
|
private |
|
private |