From 69e7880358489c939fd5d50720c9c99a4a218428 Mon Sep 17 00:00:00 2001 From: David Hall Date: Thu, 14 Nov 2019 11:02:05 -0600 Subject: [PATCH] MCOL-3607 sqrt should handle 0.0 --- utils/funcexp/func_math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/funcexp/func_math.cpp b/utils/funcexp/func_math.cpp index 8690999db..705a13620 100644 --- a/utils/funcexp/func_math.cpp +++ b/utils/funcexp/func_math.cpp @@ -1547,7 +1547,7 @@ double Func_sqrt::getDoubleVal(Row& row, // null value is indicated by NaN long double value = parm[0]->data()->getLongDoubleVal(row, isNull); - if (isNull || value <= 0.0) + if (isNull || value < 0.0) { isNull = true; return doubleNullVal();