From 630f926dc6ce5a04a33966cb1b96c8c075449581 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Tue, 20 Aug 2019 21:12:09 +0300 Subject: [PATCH] Fix MDB crash bug with failed assertion on Item_func::fixed. --- dbcon/mysql/ha_calpont_execplan.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbcon/mysql/ha_calpont_execplan.cpp b/dbcon/mysql/ha_calpont_execplan.cpp index 49ef3093e..a91b74de5 100644 --- a/dbcon/mysql/ha_calpont_execplan.cpp +++ b/dbcon/mysql/ha_calpont_execplan.cpp @@ -5237,6 +5237,11 @@ void gp_walk(const Item* item, void* arg) if (!gwip->condPush) { + if (!ifp->is_fixed()) + { + ifp->fix_fields(gwip->thd, reinterpret_cast(&ifp)); + } + if (ifp->with_subquery() || funcName == "") { buildSubselectFunc(ifp, gwip);