Public Member Functions | |
| user_var_entry (const char *, query_id_t id) | |
| double | val_real (bool *null_value) const |
| int64_t | val_int (bool *null_value) const |
| String * | val_str (bool *null_value, String *, uint32_t decimals) const |
| type::Decimal * | val_decimal (bool *null_value, type::Decimal *result) const |
| void | update_hash (bool set_null, data_ref, Item_result type, const charset_info_st *cs, Derivation dv, bool unsigned_arg) |
Public Attributes | |
| 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 28 of file user_var_entry.h.
| void drizzled::user_var_entry::update_hash | ( | bool | set_null, |
| data_ref | data, | ||
| Item_result | arg_type, | ||
| const charset_info_st * | 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 190 of file user_var_entry.cc.
| type::Decimal * drizzled::user_var_entry::val_decimal | ( | bool * | null_value, |
| type::Decimal * | val | ||
| ) | const |
Get the value of a variable as a decimal.
Definition at line 139 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 65 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 | ) | const |
Get the value of a variable as a double.
Definition at line 32 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 | ||
| ) | const |
Get the value of a variable as a string.
Definition at line 103 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().