~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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"; }