1
0
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:
Georgi Kodinov
2008-12-09 20:35:02 +02:00
parent c69ca8476c
commit d506265f2c
8 changed files with 143 additions and 24 deletions

View File

@ -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)