mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
d126de6dda
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
22 lines
447 B
C++
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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|