summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-12-09 20:35:02 +0200
committerGeorgi Kodinov <kgeorge@mysql.com>2008-12-09 20:35:02 +0200
commit979974c53ba88f66c2c00b803159599b6856ab21 (patch)
tree0db843e1daa7ae2e3211dd641d435f7584a1a8c6 /sql/opt_range.cc
parentcbe1a8a0f937dd37901f13963573a16bdf3e5c26 (diff)
downloadmariadb-git-979974c53ba88f66c2c00b803159599b6856ab21.tar.gz
backported the fix for bug #34773 to 5.0
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 204ebdb6f33..7d9b1179d87 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -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)