~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
                          uint32_t flags)
223
223
{
224
224
  int was_cut;
225
 
  THD *thd= current_thd;
 
225
  Session *thd= current_thd;
226
226
  enum enum_drizzle_timestamp_type ts_type;
227
227
  
228
228
  ts_type= str_to_datetime(str, length, l_time,
254
254
     0 - t contains datetime value which is out of TIMESTAMP range.
255
255
     
256
256
*/
257
 
my_time_t TIME_to_timestamp(THD *thd, const DRIZZLE_TIME *t, bool *in_dst_time_gap)
 
257
my_time_t TIME_to_timestamp(Session *thd, const DRIZZLE_TIME *t, bool *in_dst_time_gap)
258
258
{
259
259
  my_time_t timestamp;
260
260
 
592
592
  {
593
593
    tmp.format.str=    (char*) format_str;
594
594
    tmp.format.length= format_length;
595
 
    return date_time_format_copy((THD *)0, &tmp);
 
595
    return date_time_format_copy((Session *)0, &tmp);
596
596
  }
597
597
  return 0;
598
598
}
614
614
    new object
615
615
*/
616
616
 
617
 
DATE_TIME_FORMAT *date_time_format_copy(THD *thd, DATE_TIME_FORMAT *format)
 
617
DATE_TIME_FORMAT *date_time_format_copy(Session *thd, DATE_TIME_FORMAT *format)
618
618
{
619
619
  DATE_TIME_FORMAT *new_format;
620
620
  uint32_t length= sizeof(*format) + format->format.length + 1;
714
714
}
715
715
 
716
716
 
717
 
void make_truncated_value_warning(THD *thd, DRIZZLE_ERROR::enum_warning_level level,
 
717
void make_truncated_value_warning(Session *thd, DRIZZLE_ERROR::enum_warning_level level,
718
718
                                  const char *str_val,
719
719
                                  uint32_t str_length,
720
720
                                  enum enum_drizzle_timestamp_type time_type,