~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-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
}