~xnox/ubuntu/saucy/drizzle/merge

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-01-01 13:55:03 UTC
  • Revision ID: james.westby@ubuntu.com-20110101135503-x2ub1akxoisgwi6z
Tags: 2010.12.06-0ubuntu4
* Fixed missing build depends.
* Added Lee to uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
  return 0;
122
122
}
123
123
 
124
 
int Field_datetime::store_time(DRIZZLE_TIME *ltime, enum enum_drizzle_timestamp_type)
 
124
int Field_datetime::store_time(type::Time *ltime, enum enum_drizzle_timestamp_type)
125
125
{
126
126
  DateTime temporal;
127
127
 
216
216
  return val_buffer;
217
217
}
218
218
 
219
 
bool Field_datetime::get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate)
 
219
bool Field_datetime::get_date(type::Time *ltime, uint32_t fuzzydate)
220
220
{
221
221
  int64_t tmp=Field_datetime::val_int();
222
222
  uint32_t part1,part2;
235
235
  return (!(fuzzydate & TIME_FUZZY_DATE) && (!ltime->month || !ltime->day)) ? 1 : 0;
236
236
}
237
237
 
238
 
bool Field_datetime::get_time(DRIZZLE_TIME *ltime)
 
238
bool Field_datetime::get_time(type::Time *ltime)
239
239
{
240
240
  return Field_datetime::get_date(ltime,0);
241
241
}