~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-01-18 00:08:34 UTC
  • mto: (2097.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2098.
  • Revision ID: brian@tangent.org-20110118000834-a1p3mves421202oy
Fix additional output, swaps for the valus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
  ltime.time_type= type::DRIZZLE_TIMESTAMP_DATETIME;
47
47
 
48
48
  store_now_in_TIME(&ltime);
 
49
 
49
50
  value= (int64_t) TIME_to_uint64_t_datetime(&ltime);
50
51
 
51
 
  buff_length= (uint) my_TIME_to_str(&ltime, buff);
52
 
  max_length= buff_length;
 
52
  size_t length= type::Time::MAX_STRING_LENGTH;
 
53
  ltime.convert(buff, length);
 
54
 
 
55
  max_length= buff_length= length;
53
56
}
54
57
 
55
58
/**