~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_interval.cc

little fix in include.am 
fixed temporal_format_test to compile
fixed temporal_interval_test and main so that environment gets initialized properly before tests
tests for TemporalInterval::initFromItem
fixed bug in TemporalInterval::getIntervalFromString, which caused microseconds not to get expanded, when high end elements were not present

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
    const char *start= str;
312
312
    for (value= 0 ; str != end && my_isdigit(cs,*str) ; str++)
313
313
      value= value * 10L + (int64_t) (*str - '0');
314
 
    if (transform_msec && x == count - 1) // microseconds always last
 
314
    if (transform_msec && (x == count - 1 || str == end)) // microseconds always last
315
315
    {
316
316
      long msec_length= 6 - (str - start);
317
317
      if (msec_length > 0)