~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/sysdate_local.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 04:15:23 UTC
  • mto: (2088.1.3 merge)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117041523-o9ex94kfz1a6iqyw
Modify TableIdentifier to fit with the rest of the identifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
{
28
28
 
29
29
/**
30
 
    Converts current time in time_t to DRIZZLE_TIME represenatation for local
 
30
    Converts current time in time_t to type::Time represenatation for local
31
31
    time zone. Defines time zone (local) used for whole SYSDATE function.
32
32
*/
33
 
void Item_func_sysdate_local::store_now_in_TIME(DRIZZLE_TIME *now_time)
 
33
void Item_func_sysdate_local::store_now_in_TIME(type::Time *now_time)
34
34
{
35
35
  Session *session= current_session;
36
36
  session->variables.time_zone->gmt_sec_to_TIME(now_time, time(NULL));
70
70
}
71
71
 
72
72
 
73
 
bool Item_func_sysdate_local::get_date(DRIZZLE_TIME *res,
 
73
bool Item_func_sysdate_local::get_date(type::Time *res,
74
74
                                       uint32_t )
75
75
{
76
76
  store_now_in_TIME(&ltime);