mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Update DataTypesDecimal.h
This commit is contained in:
parent
640653dfde
commit
5ab1a15075
@ -339,7 +339,7 @@ convertToDecimal(const typename FromDataType::FieldType & value, UInt32 scale)
|
|||||||
if (converted_value == min_value || converted_value == max_value)
|
if (converted_value == min_value || converted_value == max_value)
|
||||||
throw Exception("Decimal convert overflow", ErrorCodes::DECIMAL_OVERFLOW);
|
throw Exception("Decimal convert overflow", ErrorCodes::DECIMAL_OVERFLOW);
|
||||||
return converted_value;
|
return converted_value;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if constexpr (std::is_same_v<FromFieldType, UInt64>)
|
if constexpr (std::is_same_v<FromFieldType, UInt64>)
|
||||||
|
Loading…
Reference in New Issue
Block a user