~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sum.cc

Merged Drizzle's Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
911
911
  uint32_t idx= 0;
912
912
 
913
913
  KeyInfo *keyinfo,*keyinfo_end= NULL;
914
 
  for (keyinfo= table->key_info, keyinfo_end= keyinfo+table->getShare()->keys;
 
914
  for (keyinfo= table->key_info, keyinfo_end= keyinfo+table->getShare()->sizeKeys();
915
915
       keyinfo != keyinfo_end;
916
916
       keyinfo++,idx++)
917
917
  {
938
938
      }
939
939
 
940
940
      /* Check whether the index component is partial */
941
 
      Field *part_field= table->field[part->fieldnr-1];
 
941
      Field *part_field= table->getField(part->fieldnr-1);
942
942
      part_field->setWriteSet();
943
943
 
944
944
      if ((part_field->flags & BLOB_FLAG) ||