~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Brian Aker
  • Date: 2010-05-15 01:19:45 UTC
  • Revision ID: brian@gaz-20100515011945-uxhf94vi0tzm0vq6
Rename of KEY to KeyInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
       key_length is set to length of key before (not including) field
58
58
*/
59
59
 
60
 
int find_ref_key(KEY *key, uint32_t key_count, unsigned char *record, Field *field,
 
60
int find_ref_key(KeyInfo *key, uint32_t key_count, unsigned char *record, Field *field,
61
61
                 uint32_t *key_length, uint32_t *keypart)
62
62
{
63
63
  register int i;
64
 
  register KEY *key_info;
 
64
  register KeyInfo *key_info;
65
65
  uint32_t fieldpos;
66
66
 
67
67
  fieldpos= field->offset(record);
102
102
}
103
103
 
104
104
 
105
 
void key_copy(unsigned char *to_key, unsigned char *from_record, KEY *key_info,
 
105
void key_copy(unsigned char *to_key, unsigned char *from_record, KeyInfo *key_info,
106
106
              unsigned int key_length)
107
107
{
108
108
  uint32_t length;
145
145
  Zero the null components of key tuple.
146
146
*/
147
147
 
148
 
void key_zero_nulls(unsigned char *tuple, KEY *key_info)
 
148
void key_zero_nulls(unsigned char *tuple, KeyInfo *key_info)
149
149
{
150
150
  KeyPartInfo *key_part= key_info->key_part;
151
151
  KeyPartInfo *key_part_end= key_part + key_info->key_parts;
170
170
  @param key_length  specifies length of all keyparts that will be restored
171
171
*/
172
172
 
173
 
void key_restore(unsigned char *to_record, unsigned char *from_key, KEY *key_info,
 
173
void key_restore(unsigned char *to_record, unsigned char *from_key, KeyInfo *key_info,
174
174
                 uint16_t key_length)
175
175
{
176
176
  uint32_t length;