23 #include <drizzled/function/str/strfunc.h>
24 #include <drizzled/function/time/typecast.h>
34 using Item_func::tmp_table_field;
40 const char *func_name()
const {
return "cast_as_time"; }
43 const char *cast_type()
const {
return "time"; }
44 enum_field_types field_type()
const {
return DRIZZLE_TYPE_TIME; }
51 void fix_length_and_dec()
53 collation.set(&my_charset_bin);
65 return val_decimal_from_date(decimal_value);
68 int save_in_field(
Field *field,
bool )
70 return save_date_in_field(field);
String * val_str(String *str)
TODO: Rename this file - func.h is stupid.
type::Decimal * val_decimal(type::Decimal *decimal_value)
Field * tmp_table_field_from_field_type(Table *table, bool fixed_length)
bool get_time(type::Time <ime)