Update DataTypeFactory.cpp

This commit is contained in:
alexey-milovidov 2018-07-24 00:19:21 +03:00 committed by GitHub
parent 4835b4e16e
commit 5b82080185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ void DataTypeFactory::registerAlias(const String & alias_name, const String & re
if(!case_insensitive_aliases.emplace(alias_name_lowercase, real_type_dict_name).second)
throw Exception("DataTypeFactory: case insensitive alias name '" + alias_name + "' is not unique", ErrorCodes::LOGICAL_ERROR);
if(!aliases.emplace(alias_name, real_type_dict_name).second)
if (!aliases.emplace(alias_name, real_type_dict_name).second)
throw Exception("DataTypeFactory: alias name '" + alias_name + "' is not unique", ErrorCodes::LOGICAL_ERROR);
}