mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
backported the fix for bug #34773 to 5.0
This commit is contained in:
@ -7735,7 +7735,7 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree)
|
||||
DBUG_RETURN(NULL);
|
||||
|
||||
/* The argument of MIN/MAX. */
|
||||
Item *expr= min_max_item->args[0]->real_item();
|
||||
Item *expr= min_max_item->get_arg(0)->real_item();
|
||||
if (expr->type() == Item::FIELD_ITEM) /* Is it an attribute? */
|
||||
{
|
||||
if (! min_max_arg_item)
|
||||
|
Reference in New Issue
Block a user