From 35fab052078b2f7476165b8efa9655e747f9e016 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 27 Sep 2016 18:23:22 +0100 Subject: [PATCH] MCOL-332 Fix MONTHNAME() cast to double Should return 0 to match MariaDB --- utils/funcexp/func_monthname.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/funcexp/func_monthname.cpp b/utils/funcexp/func_monthname.cpp index b36675403..c27fe73ad 100644 --- a/utils/funcexp/func_monthname.cpp +++ b/utils/funcexp/func_monthname.cpp @@ -141,9 +141,7 @@ double Func_monthname::getDoubleVal(rowgroup::Row& row, bool& isNull, execplan::CalpontSystemCatalog::ColType& op_ct) { - uint64_t val = getIntVal(row, parm, isNull, op_ct); - - return (double)val; + return 0; } execplan::IDB_Decimal Func_monthname::getDecimalVal(rowgroup::Row& row,