31
31
int64_t Item_func_unix_timestamp::val_int()
39
38
if (args[0]->type() == FIELD_ITEM)
40
39
{ // Optimize timestamp field
41
40
Field *field=((Item_field*) args[0])->field;
42
41
if (field->type() == DRIZZLE_TYPE_TIMESTAMP)
49
48
We have to set null_value again because get_arg0_date will also set it