My Project
|
Public Member Functions | |
Item_sum_hybrid (Item *item_par, int sign) | |
Item_sum_hybrid (THD *thd, Item_sum_hybrid *item) | |
bool | fix_fields (THD *, Item **) |
void | setup_hybrid (Item *item, Item *value_arg) |
void | clear () |
double | val_real () |
longlong | val_int () |
longlong | val_time_temporal () |
longlong | val_date_temporal () |
my_decimal * | val_decimal (my_decimal *) |
bool | get_date (MYSQL_TIME *ltime, uint fuzzydate) |
bool | get_time (MYSQL_TIME *ltime) |
void | reset_field () |
String * | val_str (String *) |
bool | keep_field_type (void) const |
enum Item_result | result_type () const |
enum enum_field_types | field_type () const |
void | update_field () |
void | min_max_update_str_field () |
void | min_max_update_temporal_field () |
void | min_max_update_real_field () |
void | min_max_update_int_field () |
void | min_max_update_decimal_field () |
void | cleanup () |
bool | any_value () |
void | no_rows_in_result () |
Field * | create_tmp_field (bool group, TABLE *table) |
Protected Attributes | |
Item_cache * | value |
Item_cache * | arg_cache |
Arg_comparator * | cmp |
Item_result | hybrid_type |
enum_field_types | hybrid_field_type |
int | cmp_sign |
bool | was_values |
void Item_sum_hybrid::no_rows_in_result | ( | ) | [virtual] |
Mark an aggregate as having no rows.
This function is called by the execution engine to assign 'NO ROWS FOUND' value to an aggregate item, when the underlying result set has no rows. Such value, in a general case, may be different from the default value of the item after 'clear()': e.g. a numeric item may be initialized to 0 by clear() and to NULL by no_rows_in_result().
Reimplemented from Item_sum.
void Item_sum_hybrid::setup_hybrid | ( | Item * | item, |
Item * | value_arg | ||
) |
MIN/MAX function setup.
item | argument of MIN/MAX function |
value_arg | calculated value of MIN/MAX function |
Setup cache/comparator of MIN/MAX functions. When called by the copy_or_same function value_arg parameter contains calculated value of the original MIN/MAX object and it is saved in this object's cache.
longlong Item_sum_hybrid::val_date_temporal | ( | ) | [virtual] |
Return date value of item in packed longlong format.
Reimplemented from Item.
longlong Item_sum_hybrid::val_time_temporal | ( | ) | [virtual] |
Return time value of item in packed longlong format.
Reimplemented from Item.