~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

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

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  }
39
39
 
40
40
  /* Convert the Date to a string and return it */
41
 
  size_t new_length;
42
 
  temporal.to_string(str->c_ptr(), &new_length);
43
 
  str->length((uint32_t) new_length);
 
41
  int new_length;
 
42
  new_length= temporal.to_string(str->c_ptr(), MAX_DATE_STRING_REP_LENGTH);
 
43
  assert(new_length < MAX_DATE_STRING_REP_LENGTH);
 
44
  str->length(new_length);
44
45
  return str;
45
46
}
46
47