~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/make_set.h

  • Committer: Brian Aker
  • Date: 2010-08-13 17:44:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1709.
  • Revision ID: brian@tangent.org-20100813174418-pq2wr6r6f2okx3gb
Remove myisam_data_pointer_siz

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
class Item_func_make_set :public Item_str_func
29
29
{
 
30
  Session &session;
30
31
  Item *item;
31
32
  String tmp_str;
32
33
 
33
34
public:
34
35
  using Item::split_sum_func;
35
 
  Item_func_make_set(Item *a,List<Item> &list) :Item_str_func(list),item(a) {}
 
36
  Item_func_make_set(Session &session_arg, Item *a, List<Item> &list) :
 
37
    Item_str_func(list), 
 
38
    session(session_arg),
 
39
    item(a) {}
36
40
  String *val_str(String *str);
37
 
  bool fix_fields(Session *session, Item **ref)
 
41
  bool fix_fields(Session *session_arg, Item **ref)
38
42
  {
39
43
    assert(fixed == 0);
40
 
    return ((!item->fixed && item->fix_fields(session, &item)) ||
 
44
    return ((!item->fixed && item->fix_fields(session_arg, &item)) ||
41
45
            item->check_cols(1) ||
42
 
            Item_func::fix_fields(session, ref));
 
46
            Item_func::fix_fields(session_arg, ref));
43
47
  }
44
 
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
 
48
  void split_sum_func(Session *session_arg, Item **ref_pointer_array, List<Item> &fields);
45
49
  void fix_length_and_dec();
46
50
  void update_used_tables();
47
51
  const char *func_name() const { return "make_set"; }