MySQL 8.0.39
Source Code Documentation
Ignore_command_start_error_handler Class Reference

Ignore error for specified commands. More...

Inheritance diagram for Ignore_command_start_error_handler:
[legend]

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_handlerprev_internal_handler () const
 
virtual ~Internal_error_handler ()=default
 

Detailed Description

Ignore error for specified commands.

Constructor & Destructor Documentation

◆ Ignore_command_start_error_handler()

Ignore_command_start_error_handler::Ignore_command_start_error_handler ( THD thd,
enum_server_command  command,
const char *  command_text 
)
inline

Construction.

Parameters
thdCurrent thread data.
commandCurrent command that the handler will be active against.
command_textSQL command.

Member Function Documentation

◆ handle()

bool Ignore_command_start_error_handler::handle ( )
inlineoverridevirtual

Error for specified command handling routine.

Return values
Trueon error rejection, otherwise false.

Implements Audit_error_handler.

◆ ignore_command()

static bool Ignore_command_start_error_handler::ignore_command ( enum_server_command  command)
inlinestatic

Check whether the command is to be ignored.

Return values
Truewhether the command is to be ignored. Otherwise false.

◆ print_warning()

void Ignore_command_start_error_handler::print_warning ( const char *  warn_msg,
uint  sql_errno,
const char *  sqlstate,
const char *  msg 
)
inlineoverridevirtual

Custom warning print routine.

Also prints the underlying error attributes if supplied.

Parameters
warn_msgWarning message to be printed.
sql_errnoThe error number of the underlying error
sqlstateThe SQL state of the underlying error. NULL if none
msgThe text of the underlying error. NULL if none

Reimplemented from Audit_error_handler.

Member Data Documentation

◆ m_command

enum_server_command Ignore_command_start_error_handler::m_command
private

Command that the handler is active against.

◆ m_command_text

const char* Ignore_command_start_error_handler::m_command_text
private

Command string.


The documentation for this class was generated from the following file: