From 011a1edabbaba5ceb9dfe43a3e04ce40fae10838 Mon Sep 17 00:00:00 2001 From: mariadb-KristinaPavlova Date: Tue, 12 Aug 2025 13:17:49 +0300 Subject: [PATCH] add solution only for the example --- dbcon/mysql/ha_mcs_execplan_walks.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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())