~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Olaf van der Spek
  • Date: 2011-02-23 15:52:28 UTC
  • mto: (2198.2.3 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2199.
  • Revision ID: olafvdspek@gmail.com-20110223155228-9d8k16dqdnxmc1sl
Use List::front()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1564
1564
  void add(Item_field *f);
1565
1565
  uint32_t members();
1566
1566
  bool contains(Field *field);
1567
 
  Item_field* get_first() { return fields.head(); }
 
1567
  Item_field* get_first() { return &fields.front(); }
1568
1568
  void merge(Item_equal *item);
1569
1569
  void update_const();
1570
1570
  enum Functype functype() const { return MULT_EQUAL_FUNC; }
1579
1579
  Item *transform(Item_transformer transformer, unsigned char *arg);
1580
1580
  virtual void print(String *str, enum_query_type query_type);
1581
1581
  const CHARSET_INFO *compare_collation()
1582
 
  { return fields.head()->collation.collation; }
 
1582
  { return fields.front().collation.collation; }
1583
1583
private:
1584
1584
  fields_t fields; /* list of equal field items                    */
1585
1585
  Item *const_item;        /* optional constant item equal to fields items */