ClickHouse/dbms/src/Parsers/ASTAsterisk.h

26 lines
556 B
C++
Raw Normal View History

2011-08-28 08:50:27 +00:00
#pragma once
#include <Parsers/IAST.h>
2011-08-28 08:50:27 +00:00
namespace DB
{
class ASTAsterisk : public IAST
{
public:
ASTAsterisk() = default;
ASTAsterisk(StringRange range_) : IAST(range_) {}
String getID() const override { return "Asterisk"; }
ASTPtr clone() const override { return std::make_shared<ASTAsterisk>(*this); }
String getColumnName() const override { return "*"; }
protected:
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
{
settings.ostr << "*";
}
2011-08-28 08:50:27 +00:00
};
}