#include <item_func.h>
Inheritance diagram for Item_real_func:


Public Member Functions | |
| Item_real_func () | |
| Item_real_func (Item *a) | |
| Item_real_func (Item *a, Item *b) | |
| Item_real_func (List< Item > &list) | |
| String * | val_str (String *str) |
| my_decimal * | val_decimal (my_decimal *decimal_value) |
| longlong | val_int () |
| enum Item_result | result_type () const |
| void | fix_length_and_dec () |
Definition at line 197 of file item_func.h.
| Item_real_func::Item_real_func | ( | ) | [inline] |
| Item_real_func::Item_real_func | ( | Item * | a | ) | [inline] |
| void Item_real_func::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Reimplemented in Item_dec_func, Item_func_units, and Item_func_unique_users.
Definition at line 209 of file item_func.h.
References Item::decimals, Item::float_length(), Item::max_length, and NOT_FIXED_DEC.
00210 { decimals= NOT_FIXED_DEC; max_length= float_length(decimals); }
Here is the call graph for this function:

| enum Item_result Item_real_func::result_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 208 of file item_func.h.
References REAL_RESULT.
00208 { return REAL_RESULT; }
| my_decimal * Item_real_func::val_decimal | ( | my_decimal * | decimal_value | ) | [virtual] |
Reimplemented from Item_func.
Definition at line 430 of file item_func.cc.
References DBUG_ASSERT, double2my_decimal(), E_DEC_FATAL_ERROR, Item::fixed, Item::null_value, and Item::val_real().
00431 { 00432 DBUG_ASSERT(fixed); 00433 double nr= val_real(); 00434 if (null_value) 00435 return 0; /* purecov: inspected */ 00436 double2my_decimal(E_DEC_FATAL_ERROR, nr, decimal_value); 00437 return decimal_value; 00438 }
Here is the call graph for this function:

| longlong Item_real_func::val_int | ( | void | ) | [inline, virtual] |
Implements Item.
Reimplemented in Item_func_match.
Definition at line 206 of file item_func.h.
References DBUG_ASSERT, Item::fixed, rint, and Item::val_real().
00207 { DBUG_ASSERT(fixed == 1); return (longlong) rint(val_real()); }
Here is the call graph for this function:

Implements Item.
Definition at line 419 of file item_func.cc.
References DBUG_ASSERT, Item::decimals, Item::fixed, my_charset_bin, Item::null_value, String::set_real(), and Item::val_real().
Referenced by Item_func_match::init_search().
00420 { 00421 DBUG_ASSERT(fixed == 1); 00422 double nr= val_real(); 00423 if (null_value) 00424 return 0; /* purecov: inspected */ 00425 str->set_real(nr,decimals, &my_charset_bin); 00426 return str; 00427 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

