The world's most popular open source database
#include <item_func.h>
Inheritance diagram for Item_dec_func:


Public Member Functions | |
| Item_dec_func (Item *a) | |
| Item_dec_func (Item *a, Item *b) | |
| void | fix_length_and_dec () |
| double | fix_result (double value) |
Definition at line 465 of file item_func.h.
| Item_dec_func::Item_dec_func | ( | Item * | a | ) | [inline] |
| void Item_dec_func::fix_length_and_dec | ( | ) | [inline, virtual] |
Reimplemented from Item_real_func.
Definition at line 470 of file item_func.h.
References Item::decimals, Item::float_length(), Item::max_length, Item::maybe_null, and NOT_FIXED_DEC.
00471 { 00472 decimals=NOT_FIXED_DEC; max_length=float_length(decimals); 00473 maybe_null=1; 00474 }
Here is the call graph for this function:

| double Item_dec_func::fix_result | ( | double | value | ) | [inline] |
Definition at line 475 of file item_func.h.
References finite, Item::null_value, and POSTFIX_ERROR.
Referenced by Item_func_tan::val_real(), Item_func_sin::val_real(), Item_func_cos::val_real(), Item_func_atan::val_real(), Item_func_asin::val_real(), and Item_func_acos::val_real().
00476 { 00477 #ifndef HAVE_FINITE 00478 return value; 00479 #else 00480 /* The following should be safe, even if we compare doubles */ 00481 if (finite(value) && value != POSTFIX_ERROR) 00482 return value; 00483 null_value=1; 00484 return 0.0; 00485 #endif 00486 }
Here is the caller graph for this function:

1.4.7

