mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
better
This commit is contained in:
parent
71e9a8d9d0
commit
e3a9cae4c5
@ -201,14 +201,14 @@ namespace DB
|
||||
"The argument of function " + getName() + " must be String or FixedString", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
|
||||
}
|
||||
|
||||
DataTypePtr baseType = std::make_shared<ToDataType>();
|
||||
DataTypePtr base_type = std::make_shared<ToDataType>();
|
||||
if constexpr (nullOnErrors)
|
||||
{
|
||||
return std::make_shared<DataTypeNullable>(baseType);
|
||||
return std::make_shared<DataTypeNullable>(base_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
return baseType;
|
||||
return base_type;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user