Commit 7f884c1f authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

code clean-up.

parent 5c8a14e9
......@@ -7041,13 +7041,11 @@ static inline uint
get_field_keypart(KEY *index, Field *field)
{
KEY_PART_INFO *part, *end;
uint key_part_num= 0;
for (part= index->key_part, end= part + index->key_parts; part < end; part++)
{
key_part_num++;
if (field->eq(part->field))
return key_part_num;
return part - index->key_part + 1;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment