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();