MySQL  8.0.27
Source Code Documentation
Auto_THD Class Reference

Self destroying THD. More...

#include <auto_thd.h>

Inheritance diagram for Auto_THD:
Internal_error_handler

Public Member Functions

 Auto_THD ()
 Create THD object and initialize internal variables. More...
 
 ~Auto_THD () override
 Deinitialize THD. More...
 
bool handle_condition (class THD *thd[[maybe_unused]], uint sql_errno[[maybe_unused]], const char *sqlstate[[maybe_unused]], Sql_condition::enum_severity_level *level[[maybe_unused]], const char *msg) override
 Error handler that prints error message on to the error log. More...
 
- Public Member Functions inherited from Internal_error_handler
virtual bool handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *level, const char *msg)=0
 Handle a sql condition. More...
 

Public Attributes

class THDthd
 Thd associated with the object. 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

Self destroying THD.

Constructor & Destructor Documentation

◆ Auto_THD()

Auto_THD::Auto_THD ( )

Create THD object and initialize internal variables.

◆ ~Auto_THD()

Auto_THD::~Auto_THD ( )
override

Deinitialize THD.

Member Function Documentation

◆ handle_condition()

bool Auto_THD::handle_condition ( class THD *thd [[maybe_unused],
uint sql_errno]  [[maybe_unused],
const char *sqlstate]  [[maybe_unused],
Sql_condition::enum_severity_level *level]  [[maybe_unused],
const char *  msg 
)
override

Error handler that prints error message on to the error log.

Parameters
thdCurrent THD.
sql_errnoError id.
sqlstateState of the SQL error.
levelError level.
msgMessage to be reported.
Returns
This function always return false.

Member Data Documentation

◆ thd

class THD* Auto_THD::thd

Thd associated with the object.


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