ClickHouse/src/Parsers/ASTCollation.cpp
yuuch d126de6dda
Apply suggestions from code review
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
2022-04-22 20:00:12 +08:00

22 lines
447 B
C++

#include <Parsers/ASTCollation.h>
namespace DB
{
ASTPtr ASTCollation::clone() const
{
auto res = std::make_shared<ASTCollation>(*this);
res->collation = collation->clone();
return res;
}
void ASTCollation::formatImpl(const FormatSettings &s, FormatState &state, FormatStateStacked frame) const
{
if (collation)
{
collation->formatImpl(s, state, frame);
}
}
}