Commit 65fead1c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #5510 get varchar expansion with prefix keys working in mysql 5.6.7

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@48516 c7de825b-a66e-492c-adef-691d508d4ae1
parent f023e262
......@@ -709,7 +709,7 @@ static bool
field_in_key(KEY *key, Field *field) {
for (uint i = 0; i < key->key_parts; i++) {
KEY_PART_INFO *key_part = &key->key_part[i];
if (key_part->field == field)
if (strcmp(key_part->field->field_name, field->field_name) == 0)
return true;
}
return false;
......
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