mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix build
This commit is contained in:
parent
7444eab536
commit
33647ef3d5
@ -237,12 +237,14 @@ void ASTFunction::formatImplWithoutAlias(const FormatSettings & settings, Format
|
||||
// The parser doesn't create decimal literals, but
|
||||
// they can be produced by constant folding or the
|
||||
// fuzzer.
|
||||
if (value.getValue() >= 0)
|
||||
const auto int_value = value.getValue().value;
|
||||
// We compare to zero so we don't care about scale.
|
||||
if (int_value >= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
settings.ostr << ValueType{-value.getValue(),
|
||||
settings.ostr << ValueType{-int_value,
|
||||
value.getScale()};
|
||||
}
|
||||
else if constexpr (std::is_arithmetic_v<ValueType>)
|
||||
|
Loading…
Reference in New Issue
Block a user