MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Statement_information Class Reference

#include <sql_get_diagnostics.h>

Inheritance diagram for Statement_information:
Collaboration diagram for Statement_information:

Public Member Functions

 Statement_information (List< Statement_information_item > *items)
bool aggregate (THD *thd, const Diagnostics_area *da)
- Public Member Functions inherited from Diagnostics_information
void set_which_da (Which_area area)
Which_area get_which_da (void) const

Additional Inherited Members

- Public Types inherited from Diagnostics_information
enum  Which_area { CURRENT_AREA }
- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)
- Protected Member Functions inherited from Diagnostics_information
virtual ~Diagnostics_information ()
template<typename Diag_item , typename Context >
bool evaluate (THD *thd, Diag_item *diag_item, Context ctx)

Detailed Description

Statement information.

Remarks
Provides information about the execution of a statement.

Definition at line 212 of file sql_get_diagnostics.h.

Constructor & Destructor Documentation

Statement_information::Statement_information ( List< Statement_information_item > *  items)
inline

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

Parameters
itemsList of requested statement information items.

Definition at line 221 of file sql_get_diagnostics.h.

Member Function Documentation

bool Statement_information::aggregate ( THD *  thd,
const Diagnostics_area da 
)
virtual

Obtain statement information in the context of a diagnostics area.

Obtain statement 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.

Definition at line 130 of file sql_get_diagnostics.cc.

Here is the call graph for this function:


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