From 5b82080185ff866736bcd3852ed02ac7832630de Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Tue, 24 Jul 2018 00:19:21 +0300 Subject: [PATCH] Update DataTypeFactory.cpp --- dbms/src/DataTypes/DataTypeFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/DataTypes/DataTypeFactory.cpp b/dbms/src/DataTypes/DataTypeFactory.cpp index 7379ac85b64..74e28cf9014 100644 --- a/dbms/src/DataTypes/DataTypeFactory.cpp +++ b/dbms/src/DataTypes/DataTypeFactory.cpp @@ -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); }