diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index 2c056f46b..24ba40b66 100644 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -5324,7 +5324,7 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi) // in groupconcat.cpp when ExeMgr processes groupconcat. As a temporary // fix, we cap off the max groupconcat length to std::numeric_limits::max(). // The proper fix would be to change colWidth type to uint32_t. - if (isp->max_length <= std::numeric_limits::max()) + if (isp->max_length <= static_cast(std::numeric_limits::max())) { ct.colWidth = isp->max_length; }