From 4f580d109d2199aff59dd90c2ec930e41aec6bcd Mon Sep 17 00:00:00 2001 From: Gagan Goel Date: Fri, 4 Aug 2023 09:54:40 -0400 Subject: [PATCH] Fix a compiler error related to signed v/s unsigned integer comparison. (#2915) --- dbcon/mysql/ha_mcs_execplan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }