diff --git a/dbms/src/DataTypes/DataTypeEnum.cpp b/dbms/src/DataTypes/DataTypeEnum.cpp index 9c1627299eb..3919f72ba6c 100644 --- a/dbms/src/DataTypes/DataTypeEnum.cpp +++ b/dbms/src/DataTypes/DataTypeEnum.cpp @@ -51,27 +51,23 @@ std::string DataTypeEnum::generateName(const Values & values) template void DataTypeEnum::fillMaps() { - for (const auto & name_and_value : values ) + for (const auto & name_and_value : values) { const auto name_to_value_pair = name_to_value_map.insert( { StringRef{name_and_value.first}, name_and_value.second }); if (!name_to_value_pair.second) throw Exception{ "Duplicate names in enum: '" + name_and_value.first + "' = " + toString(name_and_value.second) - + " and '" + name_to_value_pair.first->first.toString() + "' = " + toString( - name_to_value_pair.first->second), - ErrorCodes::SYNTAX_ERROR - }; + + " and '" + name_to_value_pair.first->first.toString() + "' = " + toString(name_to_value_pair.first->second), + ErrorCodes::SYNTAX_ERROR}; const auto value_to_name_pair = value_to_name_map.insert( { name_and_value.second, StringRef{name_and_value.first} }); if (!value_to_name_pair.second) throw Exception{ "Duplicate values in enum: '" + name_and_value.first + "' = " + toString(name_and_value.second) - + " and '" + value_to_name_pair.first->second.toString() + "' = " + toString( - value_to_name_pair.first->first), - ErrorCodes::SYNTAX_ERROR - }; + + " and '" + value_to_name_pair.first->second.toString() + "' = " + toString(value_to_name_pair.first->first), + ErrorCodes::SYNTAX_ERROR}; } }