mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.2 -> 5.3
This commit is contained in:
@ -11806,6 +11806,13 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree)
|
||||
else
|
||||
goto next_index;
|
||||
}
|
||||
/*
|
||||
This function is called on the precondition that the index is covering.
|
||||
Therefore if the GROUP BY list contains more elements than the index,
|
||||
these are duplicates. The GROUP BY list cannot be a prefix of the index.
|
||||
*/
|
||||
if (cur_part == end_part && tmp_group)
|
||||
goto next_index;
|
||||
}
|
||||
/*
|
||||
Check (GA2) if this is a DISTINCT query.
|
||||
|
Reference in New Issue
Block a user