~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 14:32:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328143236-4ge1d793iqaktfq0
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <drizzled/function/str/make_set.h>
23
23
#include <drizzled/session.h>
116
116
  Item *new_item= item->transform(transformer, arg);
117
117
  if (!new_item)
118
118
    return 0;
119
 
 
120
 
  /*
121
 
    Session::change_item_tree() should be called only if the tree was
122
 
    really transformed, i.e. when a new item has been created.
123
 
    Otherwise we'll be allocating a lot of unnecessary memory for
124
 
    change records at each execution.
125
 
  */
126
 
  if (item != new_item)
127
 
    session.change_item_tree(&item, new_item);
128
 
 
 
119
  item= new_item;
129
120
  return Item_str_func::transform(transformer, arg);
130
121
}
131
122
 
132
123
 
133
 
void Item_func_make_set::print(String *str, enum_query_type query_type)
 
124
void Item_func_make_set::print(String *str)
134
125
{
135
126
  str->append(STRING_WITH_LEN("make_set("));
136
 
  item->print(str, query_type);
 
127
  item->print(str);
137
128
  if (arg_count)
138
129
  {
139
130
    str->append(',');
140
 
    print_args(str, 0, query_type);
 
131
    print_args(str, 0);
141
132
  }
142
133
  str->append(')');
143
134
}