~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-06-05 00:15:57 UTC
  • mfrom: (1589.1.1 drizzle_events)
  • Revision ID: brian@gaz-20100605001557-j1k41ni5k9mis891
Merge in Barry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
27
27
 
28
28
class Item_func_make_set :public Item_str_func
29
29
{
30
 
  Session &session;
31
30
  Item *item;
32
31
  String tmp_str;
33
32
 
34
33
public:
35
34
  using Item::split_sum_func;
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) {}
 
35
  Item_func_make_set(Item *a,List<Item> &list) :Item_str_func(list),item(a) {}
40
36
  String *val_str(String *str);
41
 
  bool fix_fields(Session *session_arg, Item **ref)
 
37
  bool fix_fields(Session *session, Item **ref)
42
38
  {
43
39
    assert(fixed == 0);
44
 
    return ((!item->fixed && item->fix_fields(session_arg, &item)) ||
 
40
    return ((!item->fixed && item->fix_fields(session, &item)) ||
45
41
            item->check_cols(1) ||
46
 
            Item_func::fix_fields(session_arg, ref));
 
42
            Item_func::fix_fields(session, ref));
47
43
  }
48
 
  void split_sum_func(Session *session_arg, Item **ref_pointer_array, List<Item> &fields);
 
44
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
49
45
  void fix_length_and_dec();
50
46
  void update_used_tables();
51
47
  const char *func_name() const { return "make_set"; }