~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_decimal.cc

  • Committer: Monty Taylor
  • Date: 2008-07-31 18:25:59 UTC
  • mto: (202.3.5 gettextize)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: monty@inaugust.com-20080731182559-txjt9f3dfhusxfp8
Renamed MYSQL_TIME to DRIZZLE_TIME.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
}
209
209
 
210
210
 
211
 
my_decimal *date2my_decimal(MYSQL_TIME *ltime, my_decimal *dec)
 
211
my_decimal *date2my_decimal(DRIZZLE_TIME *ltime, my_decimal *dec)
212
212
{
213
213
  int64_t date;
214
214
  date = (ltime->year*100L + ltime->month)*100L + ltime->day;
215
 
  if (ltime->time_type > MYSQL_TIMESTAMP_DATE)
 
215
  if (ltime->time_type > DRIZZLE_TIMESTAMP_DATE)
216
216
    date= ((date*100L + ltime->hour)*100L+ ltime->minute)*100L + ltime->second;
217
217
  if (int2my_decimal(E_DEC_FATAL_ERROR, date, false, dec))
218
218
    return dec;