~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.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:
1327
1327
}
1328
1328
 
1329
1329
 
1330
 
bool Field::get_date(MYSQL_TIME *ltime,uint fuzzydate)
 
1330
bool Field::get_date(DRIZZLE_TIME *ltime,uint fuzzydate)
1331
1331
{
1332
1332
  char buff[40];
1333
1333
  String tmp(buff,sizeof(buff),&my_charset_bin),*res;
1334
1334
  if (!(res=val_str(&tmp)) ||
1335
1335
      str_to_datetime_with_warn(res->ptr(), res->length(),
1336
 
                                ltime, fuzzydate) <= MYSQL_TIMESTAMP_ERROR)
 
1336
                                ltime, fuzzydate) <= DRIZZLE_TIMESTAMP_ERROR)
1337
1337
    return 1;
1338
1338
  return 0;
1339
1339
}
1340
1340
 
1341
 
bool Field::get_time(MYSQL_TIME *ltime)
 
1341
bool Field::get_time(DRIZZLE_TIME *ltime)
1342
1342
{
1343
1343
  char buff[40];
1344
1344
  String tmp(buff,sizeof(buff),&my_charset_bin),*res;
1355
1355
    Needs to be changed if/when we want to support different time formats.
1356
1356
*/
1357
1357
 
1358
 
int Field::store_time(MYSQL_TIME *ltime,
 
1358
int Field::store_time(DRIZZLE_TIME *ltime,
1359
1359
                      timestamp_type type_arg __attribute__((unused)))
1360
1360
{
1361
1361
  char buff[MAX_DATE_STRING_REP_LENGTH];