summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-03-10 16:38:26 +0200
committerbell@sanja.is.com.ua <>2003-03-10 16:38:26 +0200
commit8482e27c81f943514c0b5fb7c7b589b71776e815 (patch)
tree78ab553d85b007784de30754b194b6232c335538 /sql/item_subselect.cc
parentdafa51eced84a93fbfce266c0a524dd15adc7d0c (diff)
parentaf06b32a1d088ffc3e3c4836abf921102e91759b (diff)
downloadmariadb-git-8482e27c81f943514c0b5fb7c7b589b71776e815.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/work-in-4.1
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 79416204972..8925c6d8981 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -487,6 +487,8 @@ void Item_in_subselect::single_value_transformer(THD *thd,
setup_ref_array(thd, &sl->ref_pointer_array,
1 + sl->with_sum_func +
sl->order_list.elements + sl->group_list.elements);
+ // To prevent crash on Item_ref_null_helper destruction in case of error
+ sl->ref_pointer_array[0]= 0;
item= (*func)(expr, new Item_ref_null_helper(this,
sl->ref_pointer_array,
(char *)"<ref>",