mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Get rid of caps
This commit is contained in:
parent
7b35920d4c
commit
0477e74f42
@ -713,7 +713,7 @@ bool isMetadataOnlyConversion(const IDataType * from, const IDataType * to)
|
||||
return false;
|
||||
};
|
||||
|
||||
static const std::unordered_multimap<std::type_index, const std::type_info &> ALLOWED_CONVERSIONS =
|
||||
static const std::unordered_multimap<std::type_index, const std::type_info &> allowed_conversions =
|
||||
{
|
||||
{ typeid(DataTypeEnum8), typeid(DataTypeInt8) },
|
||||
{ typeid(DataTypeEnum16), typeid(DataTypeInt16) },
|
||||
@ -735,7 +735,7 @@ bool isMetadataOnlyConversion(const IDataType * from, const IDataType * to)
|
||||
return true;
|
||||
|
||||
/// Types changed, but representation on disk didn't
|
||||
auto it_range = ALLOWED_CONVERSIONS.equal_range(typeid(*from));
|
||||
auto it_range = allowed_conversions.equal_range(typeid(*from));
|
||||
for (auto it = it_range.first; it != it_range.second; ++it)
|
||||
{
|
||||
if (it->second == typeid(*to))
|
||||
|
Loading…
Reference in New Issue
Block a user