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


Public Member Functions | |
| Item_datetime_typecast (Item *a) | |
| const char * | func_name () const |
| String * | val_str (String *str) |
| const char * | cast_type () const |
| enum_field_types | field_type () const |
| Field * | tmp_table_field (TABLE *table) |
| bool | result_as_longlong () |
| longlong | val_int () |
Definition at line 798 of file item_timefunc.h.
| Item_datetime_typecast::Item_datetime_typecast | ( | Item * | a | ) | [inline] |
| const char* Item_datetime_typecast::cast_type | ( | ) | const [inline, virtual] |
| enum_field_types Item_datetime_typecast::field_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 805 of file item_timefunc.h.
References MYSQL_TYPE_DATETIME.
00805 { return MYSQL_TYPE_DATETIME; }
| const char* Item_datetime_typecast::func_name | ( | ) | const [inline, virtual] |
| bool Item_datetime_typecast::result_as_longlong | ( | ) | [inline, virtual] |
Reimplemented from Item.
Definition at line 810 of file item_timefunc.h.
References TRUE.
00810 { return TRUE; }
Reimplemented from Item_func.
Definition at line 806 of file item_timefunc.h.
References Item::tmp_table_field_from_field_type().
00807 { 00808 return tmp_table_field_from_field_type(table, 0); 00809 }
Here is the call graph for this function:

| longlong Item_datetime_typecast::val_int | ( | ) | [virtual] |
Reimplemented from Item_str_func.
Definition at line 2360 of file item_timefunc.cc.
References DBUG_ASSERT, Item::fixed, Item_func::get_arg0_date(), Item::null_value, and TIME_to_ulonglong_datetime().
02361 { 02362 DBUG_ASSERT(fixed == 1); 02363 TIME ltime; 02364 if (get_arg0_date(<ime,1)) 02365 { 02366 null_value= 1; 02367 return 0; 02368 } 02369 02370 return TIME_to_ulonglong_datetime(<ime); 02371 }
Here is the call graph for this function:

Reimplemented from Item_typecast.
Definition at line 2346 of file item_timefunc.cc.
References DATE_TIME, DATE_TIME_MICROSECOND, DBUG_ASSERT, Item::fixed, Item_func::get_arg0_date(), make_datetime(), Item::null_value, st_mysql_time::second_part, and TIME_FUZZY_DATE.
02347 { 02348 DBUG_ASSERT(fixed == 1); 02349 TIME ltime; 02350 if (!get_arg0_date(<ime, TIME_FUZZY_DATE) && 02351 !make_datetime(ltime.second_part ? DATE_TIME_MICROSECOND : DATE_TIME, 02352 <ime, str)) 02353 return str; 02354 02355 null_value=1; 02356 return 0; 02357 }
Here is the call graph for this function:

1.4.7

