~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/copy_string.h

  • Committer: Brian Aker
  • Date: 2009-05-15 07:55:30 UTC
  • mfrom: (991.1.5 for-brian)
  • Revision ID: brian@gaz-20090515075530-ics1z7f23hrjy3av
MErge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
  bool is_null() { return null_value; }
68
68
};
69
69
 
70
 
 
71
 
class Item_default_value : public Item_field
72
 
{
73
 
public:
74
 
  Item *arg;
75
 
  Item_default_value(Name_resolution_context *context_arg)
76
 
    :Item_field(context_arg, (const char *)NULL, (const char *)NULL,
77
 
               (const char *)NULL),
78
 
     arg(NULL) {}
79
 
  Item_default_value(Name_resolution_context *context_arg, Item *a)
80
 
    :Item_field(context_arg, (const char *)NULL, (const char *)NULL,
81
 
                (const char *)NULL),
82
 
     arg(a) {}
83
 
  enum Type type() const { return DEFAULT_VALUE_ITEM; }
84
 
  bool eq(const Item *item, bool binary_cmp) const;
85
 
  bool fix_fields(Session *, Item **);
86
 
  virtual void print(String *str, enum_query_type query_type);
87
 
  int save_in_field(Field *field_arg, bool no_conversions);
88
 
  table_map used_tables() const { return (table_map)0L; }
89
 
 
90
 
  bool walk(Item_processor processor, bool walk_subquery, unsigned char *args)
91
 
  {
92
 
    return arg->walk(processor, walk_subquery, args) ||
93
 
      (this->*processor)(args);
94
 
  }
95
 
 
96
 
  Item *transform(Item_transformer transformer, unsigned char *args);
97
 
};
98
 
 
99
70
#endif /* DRIZZLED_ITEM_COPY_STRING_H */