~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unireg.cc

compute key_part->offset instead of storing in proto.

Show diffs side-by-side

added added

removed removed

Lines of Context:
797
797
 
798
798
      idxpart= idx->add_index_part();
799
799
 
800
 
      idxpart->set_fieldnr(key_info[i].key_part[j].fieldnr+1);
 
800
      idxpart->set_fieldnr(key_info[i].key_part[j].fieldnr);
801
801
 
802
802
      idxpart->set_compare_length(key_info[i].key_part[j].length);
803
803
 
804
 
      idxpart->set_offset(key_info[i].key_part[j].offset);
805
804
      idxpart->set_key_type(key_info[i].key_part[j].key_type);
806
805
 
807
806
    }