~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-01-08 10:35:13 UTC
  • mfrom: (2057.2.9 timestamp)
  • Revision ID: brian@tangent.org-20110108103513-3wuo8tsyajjcxjrg
Merge in fractional seconds to timestamp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
void Item_func_curdate_local::store_now_in_TIME(type::Time *now_time)
56
56
{
57
57
  Session *session= current_session;
58
 
  time_t tmp= session->query_start();
 
58
  time_t tmp= session->getCurrentTimestampEpoch();
59
59
 
60
60
  (void) cached_temporal.from_time_t(tmp);
61
61
 
65
65
  now_time->hour= 0;
66
66
  now_time->minute= 0;
67
67
  now_time->second= 0;
 
68
  now_time->second_part= 0;
68
69
}
69
70
 
70
71
/**
74
75
void Item_func_curdate_utc::store_now_in_TIME(type::Time *now_time)
75
76
{
76
77
  Session *session= current_session;
77
 
  time_t tmp= session->query_start();
 
78
  time_t tmp= session->getCurrentTimestampEpoch();
78
79
 
79
80
  (void) cached_temporal.from_time_t(tmp);
80
81
 
84
85
  now_time->hour= 0;
85
86
  now_time->minute= 0;
86
87
  now_time->second= 0;
 
88
  now_time->second_part= 0;
87
89
}
88
90
 
89
91
bool Item_func_curdate::get_temporal(Date &to)