summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-03-15 13:16:40 +0200
committerbell@sanja.is.com.ua <>2004-03-15 13:16:40 +0200
commitd2265b63455b9ebdef9ee9e759315a70234704b4 (patch)
treefd71e4c7db1fc0801006018392a53201bc3d1cd4 /sql/item_subselect.cc
parent443870e95ec54c8aa1cdff16c2ae83dfc705d61f (diff)
parent8fdce902f9c667a8064500f7758001e11973f612 (diff)
downloadmariadb-git-d2265b63455b9ebdef9ee9e759315a70234704b4.tar.gz
merge
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 372f086d464..682b8d73330 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -740,9 +740,9 @@ Item_in_subselect::single_value_transformer(JOIN *join,
select_lex->ref_pointer_array[0]= select_lex->item_list.head();
if (select_lex->table_list.elements)
{
- Item *having= item, *isnull= item;
+ Item *having= item, *orig_item= item;
item= func->create(expr, item);
- if (!abort_on_null)
+ if (!abort_on_null && orig_item->maybe_null)
{
having= new Item_is_not_null_test(this, having);
/*
@@ -762,7 +762,7 @@ Item_in_subselect::single_value_transformer(JOIN *join,
}
select_lex->having_fix_field= 0;
item= new Item_cond_or(item,
- new Item_func_isnull(isnull));
+ new Item_func_isnull(orig_item));
}
item->name= (char *)in_additional_cond;
/*