fix initialization

This commit is contained in:
myrrc 2020-12-23 17:23:20 +03:00
parent 0ab198238a
commit 2516f8408e

View File

@ -804,7 +804,7 @@ class FunctionBinaryArithmetic : public IFunction
else if constexpr (result_is_decimal)
{
if constexpr (is_multiply)
return 1;
return ResultType{1};
else
return type.scaleFactorFor(left, false);
}
@ -822,7 +822,7 @@ class FunctionBinaryArithmetic : public IFunction
if constexpr (result_is_decimal)
{
if constexpr (is_multiply)
return 1;
return ResultType{1};
else
return type.scaleFactorFor(right, is_division);
}