~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_func.cc

  • Committer: Patrick Galbraith
  • Date: 2008-07-27 19:30:42 UTC
  • mto: (212.1.4 codestyle)
  • mto: This revision was merged to the branch mainline in revision 217.
  • Revision ID: patg@ishvara-20080727193042-iie3dyo65v0grevw
Renamed all MYSQL_TYPE... to FIELD_TYPE...

It took less time than I thought.

All tests pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2195
2195
    if (args[i]->result_type() != ROW_RESULT && args[i]->is_datetime())
2196
2196
    {
2197
2197
      datetime_found= true;
2198
 
      if (!datetime_item || args[i]->field_type() == MYSQL_TYPE_DATETIME)
 
2198
      if (!datetime_item || args[i]->field_type() == FIELD_TYPE_DATETIME)
2199
2199
        datetime_item= args[i];
2200
2200
    }
2201
2201
  }
2254
2254
  if (value)
2255
2255
  {
2256
2256
    *value= min_max;
2257
 
    if (datetime_item->field_type() == MYSQL_TYPE_NEWDATE)
 
2257
    if (datetime_item->field_type() == FIELD_TYPE_NEWDATE)
2258
2258
      *value/= 1000000L;
2259
2259
  }
2260
2260
  return min_max_idx;
2646
2646
  if (args[0]->const_item() && args[1]->type() == FIELD_ITEM)
2647
2647
  {
2648
2648
    Field *field= ((Item_field*) args[1])->field;
2649
 
    if (field->real_type() == MYSQL_TYPE_SET)
 
2649
    if (field->real_type() == FIELD_TYPE_SET)
2650
2650
    {
2651
2651
      String *find=args[0]->val_str(&value);
2652
2652
      if (find)