Update convertMySQLDataType.cpp

This commit is contained in:
alexey-milovidov 2020-09-19 19:31:08 +03:00 committed by GitHub
parent 2264622f69
commit 7ae4d01744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,11 +105,10 @@ DataTypePtr convertMySQLDataType(MultiEnum<MySQLDataTypesSupport> type_support,
else if (precision <= DecimalUtils::maxPrecision<Decimal128>())
res = std::make_shared<DataTypeDecimal<Decimal128>>(precision, scale);
}
else
{
/// Also String is fallback for all unknown types.
/// Also String is fallback for all unknown types.
if (!res)
res = std::make_shared<DataTypeString>();
}
if (is_nullable)
res = std::make_shared<DataTypeNullable>(res);