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


Public Member Functions | |
| Item_func_curtime () | |
| Item_func_curtime (Item *a) | |
| enum Item_result | result_type () const |
| enum_field_types | field_type () const |
| double | val_real () |
| longlong | val_int () |
| String * | val_str (String *str) |
| void | fix_length_and_dec () |
| Field * | tmp_table_field (TABLE *table) |
| virtual void | store_now_in_TIME (TIME *now_time)=0 |
| bool | result_as_longlong () |
Private Attributes | |
| longlong | value |
| char | buff [9 *2+32] |
| uint | buff_length |
Definition at line 390 of file item_timefunc.h.
| Item_func_curtime::Item_func_curtime | ( | ) | [inline] |
| Item_func_curtime::Item_func_curtime | ( | Item * | a | ) | [inline] |
| enum_field_types Item_func_curtime::field_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 399 of file item_timefunc.h.
References MYSQL_TYPE_TIME.
00399 { return MYSQL_TYPE_TIME; }
| void Item_func_curtime::fix_length_and_dec | ( | ) | [virtual] |
Implements Item_result_field.
Definition at line 1376 of file item_timefunc.cc.
References buff, buff_length, Item::collation, DATETIME_DEC, Item::decimals, Item::max_length, my_charset_bin, my_time_to_str(), DTCollation::set(), store_now_in_TIME(), TIME_to_ulonglong_time(), and value.
01377 { 01378 TIME ltime; 01379 01380 decimals= DATETIME_DEC; 01381 collation.set(&my_charset_bin); 01382 store_now_in_TIME(<ime); 01383 value= TIME_to_ulonglong_time(<ime); 01384 buff_length= (uint) my_time_to_str(<ime, buff); 01385 max_length= buff_length; 01386 }
Here is the call graph for this function:

| bool Item_func_curtime::result_as_longlong | ( | ) | [inline, virtual] |
Reimplemented from Item.
Definition at line 414 of file item_timefunc.h.
References TRUE.
00414 { return TRUE; }
| enum Item_result Item_func_curtime::result_type | ( | ) | const [inline, virtual] |
Reimplemented from Item.
Definition at line 398 of file item_timefunc.h.
References STRING_RESULT.
00398 { return STRING_RESULT; }
| virtual void Item_func_curtime::store_now_in_TIME | ( | TIME * | now_time | ) | [pure virtual] |
Implemented in Item_func_curtime_local, and Item_func_curtime_utc.
Referenced by fix_length_and_dec().
Here is the caller graph for this function:

Reimplemented from Item_func.
Definition at line 404 of file item_timefunc.h.
References Item::tmp_table_field_from_field_type().
00405 { 00406 return tmp_table_field_from_field_type(table, 0); 00407 }
Here is the call graph for this function:

| longlong Item_func_curtime::val_int | ( | void | ) | [inline, virtual] |
Implements Item.
Definition at line 401 of file item_timefunc.h.
References DBUG_ASSERT, Item::fixed, and value.
00401 { DBUG_ASSERT(fixed == 1); return value; }
| double Item_func_curtime::val_real | ( | void | ) | [inline, virtual] |
Implements Item.
Definition at line 400 of file item_timefunc.h.
References DBUG_ASSERT, Item::fixed, and value.
00400 { DBUG_ASSERT(fixed == 1); return (double) value; }
Implements Item.
Definition at line 1368 of file item_timefunc.cc.
References buff, buff_length, DBUG_ASSERT, Item::fixed, my_charset_bin, String::set(), and Item::str_value.
01369 { 01370 DBUG_ASSERT(fixed == 1); 01371 str_value.set(buff, buff_length, &my_charset_bin); 01372 return &str_value; 01373 }
Here is the call graph for this function:

char Item_func_curtime::buff[9 *2+32] [private] |
uint Item_func_curtime::buff_length [private] |
longlong Item_func_curtime::value [private] |
Definition at line 392 of file item_timefunc.h.
Referenced by fix_length_and_dec(), val_int(), and val_real().
1.4.7

