summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorEvgeny Potemkin <epotemkin@mysql.com>2009-07-19 16:49:40 +0400
committerEvgeny Potemkin <epotemkin@mysql.com>2009-07-19 16:49:40 +0400
commitbc016c54ca3c63a4ef0b44d6413740556dd24907 (patch)
tree6a937135b0a90a041cf7271a89b9d27d26d524b5 /sql/item_subselect.cc
parentb6b56895490593aad2880442feb1f10604126b8e (diff)
parentdbe855d0e37f70ae972f09cbcf83c8964cbcb259 (diff)
downloadmariadb-git-bc016c54ca3c63a4ef0b44d6413740556dd24907.tar.gz
Merged fix for the bug#46051.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 00c09679737..cdb091fa07e 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1227,6 +1227,10 @@ Item_in_subselect::single_value_transformer(JOIN *join,
else
{
// it is single select without tables => possible optimization
+ // remove the dependence mark since the item is moved to upper
+ // select and is not outer anymore.
+ item->walk(&Item::remove_dependence_processor, 0,
+ (uchar *) select_lex->outer_select());
item= func->create(left_expr, item);
// fix_field of item will be done in time of substituting
substitution= item;