mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge may.pils.ru:/home/svoj/devel/mysql/BUG20357/mysql-4.1
into may.pils.ru:/home/svoj/devel/mysql/BUG20357/mysql-5.0
This commit is contained in:
@ -701,6 +701,12 @@ static bool find_key_for_maxmin(bool max_fl, TABLE_REF *ref,
|
||||
{
|
||||
KEY_PART_INFO *part,*part_end;
|
||||
key_part_map key_part_to_use= 0;
|
||||
/*
|
||||
Perform a check if index is not disabled by ALTER TABLE
|
||||
or IGNORE INDEX.
|
||||
*/
|
||||
if (!table->keys_in_use_for_query.is_set(idx))
|
||||
continue;
|
||||
uint jdx= 0;
|
||||
*prefix_len= 0;
|
||||
for (part= keyinfo->key_part, part_end= part+keyinfo->key_parts ;
|
||||
|
Reference in New Issue
Block a user