summaryrefslogtreecommitdiff
path: root/sql/item_row.cc
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-12-14 01:07:06 +0300
committersergefp@mysql.com <>2004-12-14 01:07:06 +0300
commit3ceb04a5d8c12d76e52195c2112845387151469c (patch)
tree06f561676d37737765d181bf46f5d0485363285e /sql/item_row.cc
parenta8e52ef4129bf0f908c702d2330ea053b92628d9 (diff)
downloadmariadb-git-3ceb04a5d8c12d76e52195c2112845387151469c.tar.gz
Merge of fix for BUG#6976 continued: pulling in some Item_ref changes from 5.0
* Added Item_ref::set_properties * Item_ref::Item_ref now expects to get in *item either NULL - then fix_fields() will be called later or ptr to Item it will refer to - then an equivalent of fix_fields() call is performed
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r--sql/item_row.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc
index b65b0b7b608..4e4957b980e 100644
--- a/sql/item_row.cc
+++ b/sql/item_row.cc
@@ -95,8 +95,8 @@ void Item_row::split_sum_func(THD *thd, Item **ref_pointer_array,
else if ((*arg)->used_tables() || (*arg)->type() == SUM_FUNC_ITEM)
{
uint el= fields.elements;
- Item *new_item= new Item_ref(ref_pointer_array + el, 0, (*arg)->name,
- *arg);
+ ref_pointer_array[el]=*arg;
+ Item *new_item= new Item_ref(ref_pointer_array + el, 0, (*arg)->name);
fields.push_front(*arg);
ref_pointer_array[el]= *arg;
thd->change_item_tree(arg, new_item);