mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +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)
|
||||
throw Exception("Decimal convert overflow", ErrorCodes::DECIMAL_OVERFLOW);
|
||||
return converted_value;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if constexpr (std::is_same_v<FromFieldType, UInt64>)
|
||||
|
Loading…
Reference in New Issue
Block a user