summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-18 22:03:02 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-18 22:03:02 +0100
commitab476a8d107b3e5b591944b2b5eb3a21d6d003a1 (patch)
tree966c077afce804cbaf0fc46ecab09c3d1da36a13 /sql/item.cc
parentf91798dd1c9e178061ba58c88a42b9cb3701385d (diff)
parent43a5090980ac0ab9695587979b9068b6bf849d64 (diff)
downloadmariadb-git-ab476a8d107b3e5b591944b2b5eb3a21d6d003a1.tar.gz
Merge branch '5.5' into 10.0
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 543ea4f0ffb..af6915d7468 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1884,6 +1884,8 @@ void Item::split_sum_func2(THD *thd, Item **ref_pointer_array,
*/
Item_aggregate_ref *item_ref;
uint el= fields.elements;
+ DBUG_ASSERT(fields.elements <=
+ thd->lex->current_select->ref_pointer_array_size);
/*
If this is an item_ref, get the original item
This is a safety measure if this is called for things that is
@@ -6716,6 +6718,7 @@ Item *Item_field::update_value_transformer(uchar *select_arg)
{
List<Item> *all_fields= &select->join->all_fields;
Item **ref_pointer_array= select->ref_pointer_array;
+ DBUG_ASSERT(all_fields->elements <= select->ref_pointer_array_size);
int el= all_fields->elements;
Item_ref *ref;