~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sum.cc

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
 
115
115
int optimizer::sum_query(TableList *tables, List<Item> &all_fields, COND *conds)
116
116
{
117
 
  List<Item>::iterator it(all_fields);
 
117
  List<Item>::iterator it(all_fields.begin());
118
118
  int const_result= 1;
119
119
  bool recalc_const_item= false;
120
120
  uint64_t count= 1;
689
689
    }
690
690
 
691
691
    /* AND */
692
 
    List<Item>::iterator li(*((Item_cond*) cond)->argument_list());
 
692
    List<Item>::iterator li(((Item_cond*) cond)->argument_list()->begin());
693
693
    Item *item;
694
694
    while ((item= li++))
695
695
    {
1071
1071
  /* If AND/OR condition */
1072
1072
  if (cond->type() == Item::COND_ITEM)
1073
1073
  {
1074
 
    List<Item>::iterator li(*((Item_cond*) cond)->argument_list());
 
1074
    List<Item>::iterator li(((Item_cond*) cond)->argument_list()->begin());
1075
1075
    Item *item;
1076
1076
    while ((item= li++))
1077
1077
    {