~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.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:
1038
1038
 
1039
1039
int Field::store_time(type::Time *ltime, type::timestamp_t)
1040
1040
{
1041
 
  char buff[MAX_DATE_STRING_REP_LENGTH];
1042
 
  uint32_t length= (uint32_t) my_TIME_to_str(ltime, buff);
1043
 
  return store(buff, length, &my_charset_bin);
 
1041
  String tmp;
 
1042
 
 
1043
  ltime->convert(tmp);
 
1044
 
 
1045
  return store(tmp.ptr(), tmp.length(), &my_charset_bin);
1044
1046
}
1045
1047
 
1046
1048
bool Field::optimize_range(uint32_t idx, uint32_t)