MySQL 8.4.3
Source Code Documentation
|
A condition information item. More...
#include <sql_get_diagnostics.h>
Public Types | |
enum | Name { CLASS_ORIGIN , SUBCLASS_ORIGIN , CONSTRAINT_CATALOG , CONSTRAINT_SCHEMA , CONSTRAINT_NAME , CATALOG_NAME , SCHEMA_NAME , TABLE_NAME , COLUMN_NAME , CURSOR_NAME , MESSAGE_TEXT , MYSQL_ERRNO , RETURNED_SQLSTATE } |
The name of a condition information item. More... | |
Public Member Functions | |
Condition_information_item (Name name, Item *target) | |
Constructor, used to represent a condition information item. More... | |
Item * | get_value (THD *thd, const Sql_condition *cond) |
Obtain value of this condition information item. More... | |
Public Member Functions inherited from Diagnostics_information_item | |
bool | set_value (THD *thd, Item **value) |
Set a value for this item. More... | |
Private Member Functions | |
Item * | make_utf8_string_item (THD *thd, const String *str) |
Create an string item to represent a condition item string. More... | |
Private Attributes | |
Name | m_name |
The name of this condition information item. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Diagnostics_information_item | |
Diagnostics_information_item (Item *target) | |
Constructor, used to represent a diagnostics information item. More... | |
virtual | ~Diagnostics_information_item () |
Diagnostics_information_item objects are allocated in thd->mem_root. More... | |
A condition information item.
Constructor, used to represent a condition information item.
name | The name of this item. |
target | A target that gets the value of this item. |
Item * Condition_information_item::get_value | ( | THD * | thd, |
const Sql_condition * | cond | ||
) |
Obtain value of this condition information item.
Obtain the value of this condition information item in the context of a given condition.
thd | The current thread. |
cond | The SQL condition. |
Item | representing the value. |
NULL | on error. |
Create an string item to represent a condition item string.
Create an UTF-8 string item to represent a condition item string.
|
private |
The name of this condition information item.