mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
dbms: made NameAndTypePair a struct (build is broken). [#METR-10202]
This commit is contained in:
parent
0041db77ab
commit
d848cfec91
@ -14,7 +14,22 @@ namespace DB
|
||||
|
||||
using Poco::SharedPtr;
|
||||
|
||||
typedef std::pair<std::string, DataTypePtr> NameAndTypePair;
|
||||
struct NameAndTypePair
|
||||
{
|
||||
String name;
|
||||
DataTypePtr type;
|
||||
|
||||
bool operator<(const NameAndTypePair & rhs) const
|
||||
{
|
||||
return std::make_pair(name, type->getName()) < std::make_pair(rhs.name, rhs.type->getName());
|
||||
}
|
||||
|
||||
bool operator==(const NameAndTypePair & rhs) const
|
||||
{
|
||||
return name == rhs.name && type->getName() == rhs.type->getName();
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::list<NameAndTypePair> NamesAndTypesList;
|
||||
typedef SharedPtr<NamesAndTypesList> NamesAndTypesListPtr;
|
||||
typedef std::vector<NameAndTypePair> NamesAndTypes;
|
||||
|
Loading…
Reference in New Issue
Block a user