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);