~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.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:
74
74
public:
75
75
  DTCollation cmp_collation;
76
76
 
77
 
  Arg_comparator(): session(0), a_cache(0), b_cache(0) {};
78
 
  Arg_comparator(Item **a1, Item **a2): a(a1), b(a2), session(0),
79
 
    a_cache(0), b_cache(0) {};
 
77
  Arg_comparator():
 
78
    session(current_session),
 
79
    a_cache(0),
 
80
    b_cache(0)
 
81
  {};
 
82
 
 
83
  Arg_comparator(Item **a1, Item **a2):
 
84
    a(a1),
 
85
    b(a2),
 
86
    session(current_session),
 
87
    a_cache(0),
 
88
    b_cache(0)
 
89
  {};
80
90
 
81
91
  int set_compare_func(Item_bool_func2 *owner, Item_result type);
82
92
  inline int set_compare_func(Item_bool_func2 *owner_arg)
937
947
{
938
948
public:
939
949
  const CHARSET_INFO *cmp_charset;
940
 
  cmp_item() { cmp_charset= &my_charset_bin; }
 
950
 
 
951
  cmp_item()
 
952
  {
 
953
    cmp_charset= &my_charset_bin;
 
954
  }
 
955
 
941
956
  virtual ~cmp_item() {}
942
957
  virtual void store_value(Item *item)= 0;
943
958
  virtual int cmp(Item *item)= 0;