This commit is contained in:
nikitamikhaylov 2020-12-08 18:39:49 +03:00
parent 767d1fc98b
commit 71e9a8d9d0

View File

@ -208,14 +208,14 @@ namespace DB
"The argument of function " + getName() + " must be integral", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); "The argument of function " + getName() + " must be integral", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
} }
DataTypePtr baseType = std::make_shared<DataTypeString>(); DataTypePtr base_type = std::make_shared<DataTypeString>();
if constexpr (nullOnErrors) if constexpr (nullOnErrors)
{ {
return std::make_shared<DataTypeNullable>(baseType); return std::make_shared<DataTypeNullable>(base_type);
} }
else else
{ {
return baseType; return base_type;
} }
} }