mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Update convertMySQLDataType.cpp
This commit is contained in:
parent
2264622f69
commit
7ae4d01744
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user