My Project
Public Member Functions | Public Attributes
Item_sum_avg Class Reference
Inheritance diagram for Item_sum_avg:
Item_sum_sum Item_sum_num Item_sum Item_result_field Item

List of all members.

Public Member Functions

 Item_sum_avg (Item *item_par, bool distinct)
 Item_sum_avg (THD *thd, Item_sum_avg *item)
void fix_length_and_dec ()
enum Sumfunctype sum_func () const
void clear ()
bool add ()
double val_real ()
longlong val_int ()
my_decimalval_decimal (my_decimal *)
Stringval_str (String *str)
void reset_field ()
void update_field ()
Itemresult_item (Field *field)
void no_rows_in_result ()
const char * func_name () const
Itemcopy_or_same (THD *thd)
Fieldcreate_tmp_field (bool group, TABLE *table)
void cleanup ()

Public Attributes

ulonglong count
uint prec_increment
uint f_precision
uint f_scale
uint dec_bin_size

Member Function Documentation

void Item_sum_avg::no_rows_in_result ( ) [inline, 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_sum.

void Item_sum_avg::update_field ( ) [virtual]

calc next value and merge it with field_value.

Reimplemented from Item_sum_sum.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines