MySQL 8.4.0
Source Code Documentation
Strict_error_handler Class Reference

This internal handler implements upgrade from SL_WARNING to SL_ERROR for the error codes affected by STRICT mode. More...

#include <error_handler.h>

Inheritance diagram for Strict_error_handler:
[legend]

Public Types

enum  enum_set_select_behavior { DISABLE_SET_SELECT_STRICT_ERROR_HANDLER , ENABLE_SET_SELECT_STRICT_ERROR_HANDLER }
 

Public Member Functions

 Strict_error_handler ()
 
 Strict_error_handler (enum_set_select_behavior param)
 
bool handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *level, const char *msg) override
 Implementation of STRICT mode. More...
 

Private Attributes

enum_set_select_behavior m_set_select_behavior
 

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 upgrade from SL_WARNING to SL_ERROR for the error codes affected by STRICT mode.

Currently STRICT mode does not affect SELECT statements.

Member Enumeration Documentation

◆ enum_set_select_behavior

Enumerator
DISABLE_SET_SELECT_STRICT_ERROR_HANDLER 
ENABLE_SET_SELECT_STRICT_ERROR_HANDLER 

Constructor & Destructor Documentation

◆ Strict_error_handler() [1/2]

Strict_error_handler::Strict_error_handler ( )
inline

◆ Strict_error_handler() [2/2]

Strict_error_handler::Strict_error_handler ( enum_set_select_behavior  param)
inline

Member Function Documentation

◆ handle_condition()

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

Implementation of STRICT mode.

Upgrades a set of given conditions from warning to error.

Implements Internal_error_handler.

Member Data Documentation

◆ m_set_select_behavior

enum_set_select_behavior Strict_error_handler::m_set_select_behavior
private

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