mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
to compatible with binary(0)
This commit is contained in:
parent
20281c25b3
commit
525b2b4511
@ -83,7 +83,11 @@ DataTypePtr convertMySQLDataType(MultiEnum<MySQLDataTypesSupport> type_support,
|
||||
res = std::make_shared<DataTypeDate>();
|
||||
}
|
||||
else if (type_name == "binary")
|
||||
{
|
||||
//compatible with binary(0) DataType
|
||||
if (length == 0) length = 1;
|
||||
res = std::make_shared<DataTypeFixedString>(length);
|
||||
}
|
||||
else if (type_name == "datetime" || type_name == "timestamp")
|
||||
{
|
||||
if (!type_support.isSet(MySQLDataTypesSupport::DATETIME64))
|
||||
|
Loading…
Reference in New Issue
Block a user