Drizzled Public API Documentation

drizzled::user_var_entry Class Reference

List of all members.

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
Stringval_str (bool *null_value, String *str, uint32_t decimals)
type::Decimalval_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

Detailed Description

Definition at line 32 of file user_var_entry.h.


Member Function Documentation

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.

Parameters:
entrypointer to structure representing variable
set_nullshould we set NULL value ?
ptrpointer to buffer with new value
lengthlength of new value
typetype of new value
cscharset info for new value
dvderivation for new value
unsigned_argindiates if a value of type INT_RESULT is unsigned
Note:
Sets error and fatal error if allocation fails.
Return values:
falsesuccess
truefailure

Definition at line 185 of file user_var_entry.cc.

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().


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