mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
fix initialization
This commit is contained in:
parent
0ab198238a
commit
2516f8408e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user