My Project
|
#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 } |
Public Member Functions | |
Condition_information_item (Name name, Item *target) | |
Item * | get_value (THD *thd, const Sql_condition *cond) |
A condition information item.
The name of a condition information item.
Condition_information_item::Condition_information_item | ( | Name | name, |
Item * | target | ||
) | [inline] |
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. |
da | The diagnostics area. |
Item | representing the value. |
NULL | on error. |