~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_sum.cc

  • Committer: Brian Aker
  • Date: 2009-07-11 05:59:19 UTC
  • mfrom: (1089.1.9 merge)
  • Revision ID: brian@gaz-20090711055919-m4px3crrdgta5lie
Collection of patches from new-cleanup (includes asserts for field in debug)

Show diffs side-by-side

added added

removed removed

Lines of Context:
601
601
  if (!cond)
602
602
    return 1;
603
603
  Field *field= field_part->field;
 
604
 
 
605
  field->setWriteSet();
 
606
 
604
607
  if (!(cond->used_tables() & field->table->map))
605
608
  {
606
609
    /* Condition doesn't restrict the used table */
831
834
 
832
835
      /* Check whether the index component is partial */
833
836
      Field *part_field= table->field[part->fieldnr-1];
 
837
      part_field->setWriteSet();
 
838
 
834
839
      if ((part_field->flags & BLOB_FLAG) ||
835
840
          part->length < part_field->key_length())
836
841
        break;