mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
This commit is contained in:
@ -7040,19 +7040,15 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree)
|
||||
*/
|
||||
if (thd->query_id == cur_field->query_id)
|
||||
{
|
||||
bool is_covered= FALSE;
|
||||
KEY_PART_INFO *key_part= cur_index_info->key_part;
|
||||
KEY_PART_INFO *key_part_end= key_part + cur_index_info->key_parts;
|
||||
for (; key_part != key_part_end ; key_part++)
|
||||
for (;;)
|
||||
{
|
||||
if (key_part->field == cur_field)
|
||||
{
|
||||
is_covered= TRUE;
|
||||
break;
|
||||
}
|
||||
if (++key_part == key_part_end)
|
||||
goto next_index; // Field was not part of key
|
||||
}
|
||||
if (!is_covered)
|
||||
goto next_index;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user