~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sum.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 12:32:41 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705123241-muriw1xhppvs6kde
Disable assert, might be a bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
1073
1073
  if (cond->type() == Item::COND_ITEM)
1074
1074
  {
1075
1075
    List<Item>::iterator li(((Item_cond*) cond)->argument_list()->begin());
1076
 
    Item *item;
1077
 
    while ((item= li++))
 
1076
    while (Item* item= li++)
1078
1077
    {
1079
1078
      if (maxmin_in_range(max_fl, field, item))
1080
 
      {
1081
1079
        return 1;
1082
 
      }
1083
1080
    }
1084
1081
    return 0;
1085
1082
  }
1120
1117
  case Item_func::EQ_FUNC:
1121
1118
  case Item_func::EQUAL_FUNC:
1122
1119
    break;
1123
 
  default:                                        // Keep compiler happy
1124
 
    assert(false);                               // Impossible
 
1120
  default:
 
1121
    ; // assert(false); // Impossible; Olaf: Not really, assert is hit. BUG?
1125
1122
  }
1126
1123
  return 0;
1127
1124
}