~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-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:
41
41
{
42
42
  assert(fixed == 1);
43
43
  store_now_in_TIME(&ltime);
44
 
  buff_length= (uint) my_TIME_to_str(&ltime, buff);
45
 
  str_value.set(buff, buff_length, &my_charset_bin);
 
44
 
 
45
  size_t length= type::Time::MAX_STRING_LENGTH;
 
46
  ltime.convert(buff, length);
 
47
  buff_length= length;
 
48
  str_value.set(buff, length, &my_charset_bin);
 
49
 
46
50
  return &str_value;
47
51
}
48
52