~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/unix_timestamp.cc

updating to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  if (args[0]->type() == FIELD_ITEM)
40
40
  {                                             // Optimize timestamp field
41
41
    Field *field=((Item_field*) args[0])->field;
42
 
    if (field->type() == DRIZZLE_TYPE_TIMESTAMP)
 
42
    if (field->is_timestamp())
43
43
      return ((field::Epoch::pointer) field)->get_timestamp(&null_value);
44
44
  }
45
45