MySQL 8.0.39
Source Code Documentation
|
This class keeps a count of all the syntax errors that occurred while parsing views, routines, events or triggers. More...
#include <server.h>
Public Member Functions | |
Syntax_error_handler () | |
Syntax_error_handler (Upgrade_error_counter *counter) | |
bool | handle_condition (THD *, uint sql_errno, const char *, Sql_condition::enum_severity_level *, const char *msg) override |
Handle a sql condition. More... | |
Static Public Member Functions | |
static bool | has_too_many_errors () |
static bool | has_errors () |
static const char * | error_message () |
Public Attributes | |
Upgrade_error_counter * | m_global_counter |
Static Public Attributes | |
static uint | parse_error_count = 0 |
static bool | is_parse_error = false |
static const uint | MAX_SERVER_CHECK_FAILS = 50 |
static dd::String_type | reason = "" |
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 |
This class keeps a count of all the syntax errors that occurred while parsing views, routines, events or triggers.
This count is used along with MAX_SERVER_CHECK_FAILS to exit upgrade.
|
inline |
|
inline |
|
static |
|
overridevirtual |
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.
|
static |
|
static |
|
static |
Upgrade_error_counter* dd::upgrade::Syntax_error_handler::m_global_counter |
|
static |
|
static |
|
static |