summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-12-11 10:13:08 -0800
committerIgor Babaev <igor@askmonty.org>2013-12-11 10:13:08 -0800
commitfde2777b2722a2b81f995c74e74cc3e47c0f8788 (patch)
tree8c6891759fd8d87022537f3a2e56df3ebe0422db /sql/sql_union.cc
parentd5262a63fcbb13e3c2b1734ada36f3db8c6cb0c3 (diff)
downloadmariadb-git-fde2777b2722a2b81f995c74e74cc3e47c0f8788.tar.gz
Another attempt to fix the memory leak of mdev-5400.
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index 5c4a9a8db5f..f82657a837c 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -628,6 +628,7 @@ bool st_select_lex_unit::exec()
{
ha_rows records_at_start= 0;
thd->lex->current_select= sl;
+ fake_select_lex->uncacheable|= sl->uncacheable;
{
set_limit(sl);