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


Public Member Functions | |
| Item_func_convert_tz (Item *a, Item *b, Item *c) | |
| longlong | val_int () |
| double | val_real () |
| String * | val_str (String *str) |
| const char * | func_name () const |
| bool | fix_fields (THD *, Item **) |
| void | fix_length_and_dec () |
| bool | get_date (TIME *res, uint fuzzy_date) |
| void | cleanup () |
Private Attributes | |
| TABLE_LIST * | tz_tables |
| bool | from_tz_cached |
| bool | to_tz_cached |
| Time_zone * | from_tz |
| Time_zone * | to_tz |
Definition at line 603 of file item_timefunc.h.
Definition at line 616 of file item_timefunc.h.
00616 : 00617 Item_date_func(a, b, c), from_tz_cached(0), to_tz_cached(0) {} longlong val_int();
| void Item_func_convert_tz::cleanup | ( | ) | [virtual] |
Reimplemented from Item_result_field.
Definition at line 1925 of file item_timefunc.cc.
References Item_result_field::cleanup(), from_tz_cached, and to_tz_cached.
01926 { 01927 from_tz_cached= to_tz_cached= 0; 01928 Item_date_func::cleanup(); 01929 }
Here is the call graph for this function:

Reimplemented from Item_func.
Definition at line 1844 of file item_timefunc.cc.
References FALSE, Item_func::fix_fields(), TRUE, and tz_tables.
01845 { 01846 String str; 01847 if (Item_date_func::fix_fields(thd_arg, ref)) 01848 return TRUE; 01849 01850 tz_tables= thd_arg->lex->time_zone_tables_used; 01851 01852 return FALSE; 01853 }
Here is the call graph for this function:

| void Item_func_convert_tz::fix_length_and_dec | ( | ) | [virtual] |
Implements Item_result_field.
Definition at line 1834 of file item_timefunc.cc.
References Item::collation, Item::decimals, MAX_DATETIME_WIDTH, Item::max_length, Item::maybe_null, my_charset_bin, MY_CHARSET_BIN_MB_MAXLEN, and DTCollation::set().
01835 { 01836 collation.set(&my_charset_bin); 01837 decimals= 0; 01838 max_length= MAX_DATETIME_WIDTH*MY_CHARSET_BIN_MB_MAXLEN; 01839 maybe_null= 1; 01840 }
Here is the call graph for this function:

| const char* Item_func_convert_tz::func_name | ( | ) | const [inline, virtual] |
| longlong Item_func_convert_tz::val_int | ( | ) | [virtual] |
Reimplemented from Item_str_func.
Definition at line 1874 of file item_timefunc.cc.
References get_date(), and TIME_to_ulonglong_datetime().
Referenced by val_real().
01875 { 01876 TIME time_tmp; 01877 01878 if (get_date(&time_tmp, 0)) 01879 return 0; 01880 01881 return (longlong)TIME_to_ulonglong_datetime(&time_tmp); 01882 }
Here is the call graph for this function:

Here is the caller graph for this function:

| double Item_func_convert_tz::val_real | ( | void | ) | [inline, virtual] |
Reimplemented from Item_str_func.
Definition at line 619 of file item_timefunc.h.
References val_int().
00619 { return (double) val_int(); }
Here is the call graph for this function:

Implements Item.
Definition at line 1856 of file item_timefunc.cc.
References String::alloc(), get_date(), make_datetime(), MY_CHARSET_BIN_MB_MAXLEN, and Item::null_value.
01857 { 01858 TIME time_tmp; 01859 01860 if (get_date(&time_tmp, 0)) 01861 return 0; 01862 01863 if (str->alloc(20*MY_CHARSET_BIN_MB_MAXLEN)) 01864 { 01865 null_value= 1; 01866 return 0; 01867 } 01868 01869 make_datetime((DATE_TIME_FORMAT *) 0, &time_tmp, str); 01870 return str; 01871 }
Here is the call graph for this function:

Time_zone* Item_func_convert_tz::from_tz [private] |
Definition at line 614 of file item_timefunc.h.
bool Item_func_convert_tz::from_tz_cached [private] |
Time_zone * Item_func_convert_tz::to_tz [private] |
Definition at line 614 of file item_timefunc.h.
bool Item_func_convert_tz::to_tz_cached [private] |
TABLE_LIST* Item_func_convert_tz::tz_tables [private] |
1.4.7

