You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-3607 sqrt should handle 0.0
This commit is contained in:
committed by
Andrew Hutchings
parent
ea8e604324
commit
69e7880358
@ -1547,7 +1547,7 @@ double Func_sqrt::getDoubleVal(Row& row,
|
|||||||
// null value is indicated by NaN
|
// null value is indicated by NaN
|
||||||
long double value = parm[0]->data()->getLongDoubleVal(row, isNull);
|
long double value = parm[0]->data()->getLongDoubleVal(row, isNull);
|
||||||
|
|
||||||
if (isNull || value <= 0.0)
|
if (isNull || value < 0.0)
|
||||||
{
|
{
|
||||||
isNull = true;
|
isNull = true;
|
||||||
return doubleNullVal();
|
return doubleNullVal();
|
||||||
|
Reference in New Issue
Block a user