~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/my_decimal.cc

MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
 
211
211
my_decimal *date2my_decimal(MYSQL_TIME *ltime, my_decimal *dec)
212
212
{
213
 
  longlong date;
 
213
  int64_t date;
214
214
  date = (ltime->year*100L + ltime->month)*100L + ltime->day;
215
215
  if (ltime->time_type > MYSQL_TIMESTAMP_DATE)
216
216
    date= ((date*100L + ltime->hour)*100L+ ltime->minute)*100L + ltime->second;