From 9fce94287827eee4c1bcddd70a4aacff96314871 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Sat, 24 Aug 2019 20:47:24 +0300 Subject: MDEV-19831 find_select_handler() now tries its best to find a handlerton that is able to processes the whole query. For that it traverses tables from subqueries. Select_handler now cleans up temporary table structures on dctor call. --- sql/select_handler.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/select_handler.cc') diff --git a/sql/select_handler.cc b/sql/select_handler.cc index f020d2f6b80..b364cb12341 100644 --- a/sql/select_handler.cc +++ b/sql/select_handler.cc @@ -45,6 +45,8 @@ Pushdown_select::Pushdown_select(SELECT_LEX *sel, select_handler *h) Pushdown_select::~Pushdown_select() { + if (handler->table) + free_tmp_table(handler->thd, handler->table); delete handler; select->select_h= NULL; } -- cgit v1.2.1