~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/time_functions.cc

Update of the time code. Epoch is now used for timestamp internall (this is
not a user level change). This fixes the issue where some DD were not
displaying the correct column type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
  to->second=   (int) from->tm_sec;
171
171
}
172
172
 
 
173
void make_time(const DRIZZLE_TIME *l_time, String *str)
 
174
{
 
175
  str->alloc(MAX_DATE_STRING_REP_LENGTH);
 
176
  uint32_t length= (uint32_t) my_time_to_str(l_time, str->c_ptr());
 
177
  str->length(length);
 
178
  str->set_charset(&my_charset_bin);
 
179
}
 
180
 
173
181
void make_date(const DRIZZLE_TIME *l_time, String *str)
174
182
{
175
183
  str->alloc(MAX_DATE_STRING_REP_LENGTH);