~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/typecast.h

  • Committer: Brian Aker
  • Date: 2009-02-02 23:10:18 UTC
  • mfrom: (779.3.40 devel)
  • Revision ID: brian@tangent.org-20090202231018-zlp0hka6kgwy1vfy
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
class Item_typecast :public Item_str_func
26
26
{
27
27
public:
 
28
  using Item_func::tmp_table_field;
 
29
 
28
30
  Item_typecast(Item *a) :Item_str_func(a) {}
29
31
  String *val_str(String *a)
30
32
  {
63
65
  bool charset_conversion;
64
66
  String tmp_value;
65
67
public:
 
68
  using Item_func::tmp_table_field;
 
69
 
66
70
  Item_char_typecast(Item *a, int length_arg, const CHARSET_INFO * const cs_arg)
67
71
    :Item_typecast(a), cast_length(length_arg), cast_cs(cs_arg) {}
68
72
  enum Functype functype() const { return CHAR_TYPECAST_FUNC; }
77
81
class Item_date_typecast :public Item_typecast_maybe_null
78
82
{
79
83
public:
 
84
  using Item_func::tmp_table_field;
 
85
 
80
86
  Item_date_typecast(Item *a) :Item_typecast_maybe_null(a) {}
81
87
  const char *func_name() const { return "cast_as_date"; }
82
88
  String *val_str(String *str);
112
118
class Item_time_typecast :public Item_typecast_maybe_null
113
119
{
114
120
public:
 
121
  using Item_func::tmp_table_field;
 
122
 
115
123
  Item_time_typecast(Item *a) :Item_typecast_maybe_null(a) {}
116
124
  const char *func_name() const { return "cast_as_time"; }
117
125
  String *val_str(String *str);
140
148
class Item_datetime_typecast :public Item_typecast_maybe_null
141
149
{
142
150
public:
 
151
  using Item_func::tmp_table_field;
 
152
 
143
153
  Item_datetime_typecast(Item *a) :Item_typecast_maybe_null(a) {}
144
154
  const char *func_name() const { return "cast_as_datetime"; }
145
155
  String *val_str(String *str);