~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/opt_range.cc

  • Committer: Patrick Galbraith
  • Date: 2008-07-28 01:47:41 UTC
  • mto: (212.1.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 217.
  • Revision ID: patg@ishvara-20080728014741-yoasv5trt1ef9rha
Renamed FIELD_TYPE to DRIZZLE_TYPE

Show diffs side-by-side

added added

removed removed

Lines of Context:
4472
4472
  /* For comparison purposes allow invalid dates like 2000-01-32 */
4473
4473
  orig_sql_mode= field->table->in_use->variables.sql_mode;
4474
4474
  if (value->real_item()->type() == Item::STRING_ITEM &&
4475
 
      (field->type() == FIELD_TYPE_NEWDATE ||
4476
 
       field->type() == FIELD_TYPE_DATETIME))
 
4475
      (field->type() == DRIZZLE_TYPE_NEWDATE ||
 
4476
       field->type() == DRIZZLE_TYPE_DATETIME))
4477
4477
    field->table->in_use->variables.sql_mode|= MODE_INVALID_DATES;
4478
4478
  err= value->save_in_field_no_warnings(field, 1);
4479
4479
  if (err > 0)
4495
4495
          for the cases like int_field > 999999999999999999999999 as well.
4496
4496
        */
4497
4497
        tree= 0;
4498
 
        if (err == 3 && field->type() == FIELD_TYPE_NEWDATE &&
 
4498
        if (err == 3 && field->type() == DRIZZLE_TYPE_NEWDATE &&
4499
4499
            (type == Item_func::GT_FUNC || type == Item_func::GE_FUNC ||
4500
4500
             type == Item_func::LT_FUNC || type == Item_func::LE_FUNC) )
4501
4501
        {