This commit is contained in:
nikitamikhaylov 2020-12-08 20:43:43 +03:00
parent 71e9a8d9d0
commit e3a9cae4c5

View File

@ -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;
}
}