#include <item_timefunc.h>
Inheritance diagram for Item_func_month:


Public Member Functions | |
| Item_func_month (Item *a) | |
| longlong | val_int () |
| double | val_real () |
| String * | val_str (String *str) |
| const char * | func_name () const |
| enum Item_result | result_type () const |
| void | fix_length_and_dec () |
| bool | check_partition_func_processor (byte *bool_arg) |
Definition at line 94 of file item_timefunc.h.
| Item_func_month::Item_func_month | ( | Item * | a | ) | [inline] |
| void Item_func_month::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Reimplemented in Item_func_monthname.
Definition at line 108 of file item_timefunc.h.
References Item::collation, Item::decimals, Item::max_length, Item::maybe_null, my_charset_bin, MY_CHARSET_BIN_MB_MAXLEN, and DTCollation::set().
00109 { 00110 collation.set(&my_charset_bin); 00111 decimals=0; 00112 max_length=2*MY_CHARSET_BIN_MB_MAXLEN; 00113 maybe_null=1; 00114 }
Here is the call graph for this function:

| const char* Item_func_month::func_name | ( | ) | const [inline, virtual] |
Implements Item_func.
Reimplemented in Item_func_monthname.
Definition at line 106 of file item_timefunc.h.
| enum Item_result Item_func_month::result_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Reimplemented in Item_func_monthname.
Definition at line 107 of file item_timefunc.h.
References INT_RESULT.
00107 { return INT_RESULT; }
| longlong Item_func_month::val_int | ( | ) | [virtual] |
Implements Item.
Definition at line 868 of file item_timefunc.cc.
References DBUG_ASSERT, Item::fixed, Item_func::get_arg0_date(), st_mysql_time::month, and TIME_FUZZY_DATE.
Referenced by val_real(), val_str(), and Item_func_monthname::val_str().
00869 { 00870 DBUG_ASSERT(fixed == 1); 00871 TIME ltime; 00872 (void) get_arg0_date(<ime, TIME_FUZZY_DATE); 00873 return (longlong) ltime.month; 00874 }
Here is the call graph for this function:

Here is the caller graph for this function:

| double Item_func_month::val_real | ( | void | ) | [inline, virtual] |
Implements Item.
Definition at line 99 of file item_timefunc.h.
References DBUG_ASSERT, Item::fixed, and val_int().
00100 { DBUG_ASSERT(fixed == 1); return (double) Item_func_month::val_int(); }
Here is the call graph for this function:

Implements Item.
Reimplemented in Item_func_monthname.
Definition at line 101 of file item_timefunc.h.
References my_charset_bin, Item::null_value, String::set(), and val_int().
00102 { 00103 str->set(val_int(), &my_charset_bin); 00104 return null_value ? 0 : str; 00105 }
Here is the call graph for this function:

1.4.7

