1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-3607 sqrt should handle 0.0

This commit is contained in:
David Hall
2019-11-14 11:02:05 -06:00
committed by Andrew Hutchings
parent ea8e604324
commit 69e7880358

View File

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