MySQL 8.0.40
Source Code Documentation
Condition_information Class Reference

Condition information. More...

#include <sql_get_diagnostics.h>

Inheritance diagram for Condition_information:
[legend]

Public Member Functions

 Condition_information (Item *cond_number_expr, List< Condition_information_item > *items)
 Constructor, used to represent the condition information of a GET DIAGNOSTICS statement. More...
 
bool aggregate (THD *thd, const Diagnostics_area *da) override
 Obtain condition information in the context of a Diagnostics Area. More...
 
- Public Member Functions inherited from Diagnostics_information
void set_which_da (Which_area area)
 Set which Diagnostics Area to access. More...
 
Which_area get_which_da (void) const
 Get which Diagnostics Area to access. More...
 

Private Attributes

Itemm_cond_number_expr
 Number that identifies the diagnostic condition for which information is to be obtained. More...
 
List< Condition_information_item > * m_items
 List of condition information items. More...
 

Additional Inherited Members

- Public Types inherited from Diagnostics_information
enum  Which_area { CURRENT_AREA , STACKED_AREA }
 Which Diagnostics Area to access. More...
 
- Protected Member Functions inherited from Diagnostics_information
virtual ~Diagnostics_information ()
 Diagnostics_information objects are allocated in thd->mem_root. More...
 
template<typename Diag_item , typename Context >
bool evaluate (THD *thd, Diag_item *diag_item, Context ctx)
 Evaluate a diagnostics information item in a specific context. More...
 

Detailed Description

Condition information.

Remarks
Provides information about conditions raised during the execution of a statement.

Constructor & Destructor Documentation

◆ Condition_information()

Condition_information::Condition_information ( Item cond_number_expr,
List< Condition_information_item > *  items 
)
inline

Constructor, used to represent the condition information of a GET DIAGNOSTICS statement.

Parameters
cond_number_exprNumber that identifies the diagnostic condition.
itemsList of requested condition information items.

Member Function Documentation

◆ aggregate()

bool Condition_information::aggregate ( THD thd,
const Diagnostics_area da 
)
overridevirtual

Obtain condition information in the context of a Diagnostics Area.

Obtain condition information in the context of a given Diagnostics Area.

Parameters
thdThe current thread.
daThe Diagnostics Area.
Return values
falseon success.
trueon error

Implements Diagnostics_information.

Member Data Documentation

◆ m_cond_number_expr

Item* Condition_information::m_cond_number_expr
private

Number that identifies the diagnostic condition for which information is to be obtained.

◆ m_items

List<Condition_information_item>* Condition_information::m_items
private

List of condition information items.


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