Update DataTypesDecimal.h

This commit is contained in:
alexey-milovidov 2019-06-13 17:48:13 +03:00 committed by GitHub
parent 640653dfde
commit 5ab1a15075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>)