~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.cc

  • Committer: Lee Bieber
  • Date: 2011-02-23 15:55:11 UTC
  • mfrom: (2183.2.17 list2)
  • mto: This revision was merged to the branch mainline in revision 2195.
  • Revision ID: kalebral@gmail.com-20110223155511-b3onmo8k9d57msvn
Merge Olaf - Use Item_equal::begin() and Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
    Check that non-aggregated fields and sum functions aren't mixed in the
228
228
    same select in the ONLY_FULL_GROUP_BY mode.
229
229
  */
230
 
  if (outer_fields.elements)
 
230
  if (outer_fields.size())
231
231
  {
232
232
    Item_field *field;
233
233
    /*
381
381
}
382
382
 
383
383
 
384
 
Item_sum::Item_sum(List<Item> &list) :arg_count(list.elements),
 
384
Item_sum::Item_sum(List<Item> &list) :arg_count(list.size()),
385
385
  forced_const(false)
386
386
{
387
387
  if ((args=(Item**) memory::sql_alloc(sizeof(Item*)*arg_count)))
2973
2973
   separator(separator_arg), tree(NULL), unique_filter(NULL), table(0),
2974
2974
   order(0), context(context_arg),
2975
2975
   arg_count_order(order_list ? order_list->elements : 0),
2976
 
   arg_count_field(select_list->elements),
 
2976
   arg_count_field(select_list->size()),
2977
2977
   count_cut_values(0),
2978
2978
   distinct(distinct_arg),
2979
2979
   warning_for_row(false),