~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-07 17:20:59 UTC
  • mfrom: (2148 staging)
  • mto: (2148.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: andrew@linuxjedi.co.uk-20110207172059-dyeahrgzrlincoe3
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
 * statement "tree" or Lex.  Each item represents something in the
81
81
 * execution plan.
82
82
 */
83
 
class DRIZZLED_API Item :
84
 
  public memory::SqlAlloc
 
83
class DRIZZLED_API Item : public memory::SqlAlloc
85
84
{
86
85
  /* Prevent use of these */
87
86
  Item(const Item &);
168
167
 
169
168
  bool with_sum_func;
170
169
  bool is_autogenerated_name; /**< indicates whether name of this Item was autogenerated or set by user */
 
170
 
171
171
  /**
172
172
   * If this item is a subselect or some of its arguments is or contains a
173
173
   * subselect. Computed by fix_fields.
175
175
  bool with_subselect;
176
176
  DTCollation collation;
177
177
  Item_result cmp_context; /**< Comparison context */
 
178
 
178
179
  /**
179
180
   * Constructor
180
181
   *
195
196
   * optimisation changes in prepared statements
196
197
   */
197
198
  Item(Session *session, Item *item);
 
199
 
198
200
  virtual ~Item()
199
201
  {
200
202
#ifdef EXTRA_DEBUG
829
831
    collation.set(&my_charset_bin);
830
832
    fix_char_length(max_char_length_arg);
831
833
  }
 
834
protected:
 
835
  Session &getSession()
 
836
  {
 
837
    return _session;
 
838
  }
 
839
 
 
840
private:
 
841
  Session &_session;
832
842
};
833
843
 
834
844
namespace display {