MySQL 8.4.2
Source Code Documentation
Ignore_error_handler Class Reference

This internal handler implements downgrade from SL_ERROR to SL_WARNING for statements which support IGNORE. More...

#include <error_handler.h>

Inheritance diagram for Ignore_error_handler:
[legend]

Public Member Functions

bool handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *level, const char *msg) override
 This handler is used for the statements which support IGNORE keyword. 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

This internal handler implements downgrade from SL_ERROR to SL_WARNING for statements which support IGNORE.

Member Function Documentation

◆ handle_condition()

bool Ignore_error_handler::handle_condition ( THD thd,
uint  sql_errno,
const char *  sqlstate,
Sql_condition::enum_severity_level level,
const char *  msg 
)
overridevirtual

This handler is used for the statements which support IGNORE keyword.

If IGNORE is specified in the statement, this error handler converts the given errors codes to warnings. These errors occur for each record. With IGNORE, statements are not aborted and next row is processed.

Implements Internal_error_handler.


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