MySQL 8.0.39
Source Code Documentation
|
Ignore error for specified commands. More...
Public Member Functions | |
Ignore_command_start_error_handler (THD *thd, enum_server_command command, const char *command_text) | |
Construction. More... | |
bool | handle () override |
Error for specified command handling routine. More... | |
void | print_warning (const char *warn_msg, uint sql_errno, const char *sqlstate, const char *msg) override |
Custom warning print routine. More... | |
Public Member Functions inherited from Audit_error_handler | |
Audit_error_handler (THD *thd, const char *warning_message, bool active=true) | |
Construction. More... | |
~Audit_error_handler () override | |
Destruction. More... | |
bool | handle_condition (THD *, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *, const char *msg) override |
Error handler. More... | |
int | get_result (int result) |
Convert the result value returned from the audit api. More... | |
Static Public Member Functions | |
static bool | ignore_command (enum_server_command command) |
Check whether the command is to be ignored. More... | |
Private Attributes | |
enum_server_command | m_command |
Command that the handler is active against. More... | |
const char * | m_command_text |
Command string. More... | |
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 |
Ignore error for specified commands.
|
inline |
Construction.
thd | Current thread data. |
command | Current command that the handler will be active against. |
command_text | SQL command. |
|
inlineoverridevirtual |
Error for specified command handling routine.
True | on error rejection, otherwise false. |
Implements Audit_error_handler.
|
inlinestatic |
Check whether the command is to be ignored.
True | whether the command is to be ignored. Otherwise false. |
|
inlineoverridevirtual |
Custom warning print routine.
Also prints the underlying error attributes if supplied.
warn_msg | Warning message to be printed. |
sql_errno | The error number of the underlying error |
sqlstate | The SQL state of the underlying error. NULL if none |
msg | The text of the underlying error. NULL if none |
Reimplemented from Audit_error_handler.
|
private |
Command that the handler is active against.
|
private |
Command string.