diff --git a/dbcon/mysql/ha_mcs_execplan_walks.cpp b/dbcon/mysql/ha_mcs_execplan_walks.cpp index c2fdc0a7b..813e41426 100644 --- a/dbcon/mysql/ha_mcs_execplan_walks.cpp +++ b/dbcon/mysql/ha_mcs_execplan_walks.cpp @@ -251,8 +251,11 @@ void gp_walk(const Item* item, void* arg) Item* ncitem = const_cast(item); Item_func* ifp = static_cast(ncitem); - std::string funcName = ifp->func_name(); - + if(ifp->arguments()[0] != nullptr && ifp->arguments()[0]->type()!= Item::FIELD_ITEM) + { + return; + } + if (!gwip->condPush) { if (!ifp->fixed())