summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-02-12 02:59:58 +0300
committerSergey Petrunya <psergey@askmonty.org>2010-02-12 02:59:58 +0300
commitf4d552104364fe195237f39862d91f657c7a34cb (patch)
tree3af7e8654140afb7d58499534382979d82a82353 /sql/item_sum.cc
parent17116d5155699292280c4fd202b4460426284a5a (diff)
downloadmariadb-git-f4d552104364fe195237f39862d91f657c7a34cb.tar.gz
BUG#31480: Incorrect result for nested subquery when executed via semi join
- Variant #3 of the fix. It also = Unifies code with table elimination's = is able to handle FROM-subquery pullout.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index ff70c2aedfc..be1b32547f4 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -350,7 +350,7 @@ bool Item_sum::register_sum_func(THD *thd, Item **ref)
sl= sl->master_unit()->outer_select() )
sl->master_unit()->item->with_sum_func= 1;
}
- thd->lex->current_select->mark_as_dependent(aggr_sel, NULL);
+ thd->lex->current_select->mark_as_dependent(thd, aggr_sel, NULL);
return FALSE;
}