Public Member Functions | |
user_var_entry (const char *arg, query_id_t id) | |
double | val_real (bool *null_value) |
int64_t | val_int (bool *null_value) const |
String * | val_str (bool *null_value, String *str, uint32_t decimals) |
type::Decimal * | val_decimal (bool *null_value, type::Decimal *result) |
bool | update_hash (bool set_null, void *ptr, uint32_t length, Item_result type, const CHARSET_INFO *const cs, Derivation dv, bool unsigned_arg) |
Public Attributes | |
LEX_STRING | name |
char * | value |
ulong | length |
size_t | size |
query_id_t | update_query_id |
query_id_t | used_query_id |
Item_result | type |
bool | unsigned_flag |
DTCollation | collation |
Definition at line 32 of file user_var_entry.h.
bool drizzled::user_var_entry::update_hash | ( | bool | set_null, |
void * | ptr, | ||
uint32_t | arg_length, | ||
Item_result | arg_type, | ||
const CHARSET_INFO *const | cs, | ||
Derivation | dv, | ||
bool | unsigned_arg | ||
) |
Set value to user variable.
entry | pointer to structure representing variable |
set_null | should we set NULL value ? |
ptr | pointer to buffer with new value |
length | length of new value |
type | type of new value |
cs | charset info for new value |
dv | derivation for new value |
unsigned_arg | indiates if a value of type INT_RESULT is unsigned |
false | success |
true | failure |
Definition at line 185 of file user_var_entry.cc.
type::Decimal * drizzled::user_var_entry::val_decimal | ( | bool * | null_value, |
type::Decimal * | val | ||
) |
Get the value of a variable as a decimal.
Definition at line 135 of file user_var_entry.cc.
References drizzled::type::Decimal::store().
Referenced by drizzled::Item_func_get_user_var::val_decimal(), and drizzled::Item_func_set_user_var::val_decimal().
int64_t drizzled::user_var_entry::val_int | ( | bool * | null_value | ) | const |
Get the value of a variable as an integer.
Definition at line 63 of file user_var_entry.cc.
Referenced by drizzled::Item_func_get_user_var::val_int(), and drizzled::Item_func_set_user_var::val_int().
double drizzled::user_var_entry::val_real | ( | bool * | null_value | ) |
Get the value of a variable as a double.
Definition at line 31 of file user_var_entry.cc.
Referenced by drizzled::Item_func_get_user_var::val_real(), and drizzled::Item_func_set_user_var::val_real().
String * drizzled::user_var_entry::val_str | ( | bool * | null_value, |
String * | str, | ||
uint32_t | decimals | ||
) |
Get the value of a variable as a string.
Definition at line 99 of file user_var_entry.cc.
References drizzled::class_decimal2string().
Referenced by drizzled::Item_func_get_user_var::val_str(), and drizzled::Item_func_set_user_var::val_str().