MySQL 8.0.32
Source Code Documentation
Auto_THD Class Reference

Self destroying THD. More...

#include <auto_thd.h>

Inheritance diagram for Auto_THD:

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, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *level, const char *msg) override
 Error handler that prints error message on to the error log. 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 ( )

Deinitialize THD.

Member Function Documentation

◆ handle_condition()

bool Auto_THD::handle_condition ( class THD thd,
uint  sql_errno,
const char *  sqlstate,
Sql_condition::enum_severity_level level,
const char *  msg 

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

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

Implements Internal_error_handler.

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: