~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_sum.cc

Collection of patches/bug fixes from new-cleanup tree (none of the
Table/other fixes are included).

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;