2011-08-28 08:50:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/** Звёздочка.
|
|
|
|
*/
|
|
|
|
class ASTAsterisk : public IAST
|
|
|
|
{
|
|
|
|
public:
|
2014-12-17 15:26:24 +00:00
|
|
|
ASTAsterisk() = default;
|
2011-08-28 08:50:27 +00:00
|
|
|
ASTAsterisk(StringRange range_) : IAST(range_) {}
|
2014-12-17 15:26:24 +00:00
|
|
|
String getID() const override { return "Asterisk"; }
|
|
|
|
ASTPtr clone() const override { return new ASTAsterisk(*this); }
|
|
|
|
String getColumnName() const override { return "*"; }
|
2015-08-05 21:38:31 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
|
|
|
|
{
|
|
|
|
settings.ostr << "*";
|
|
|
|
}
|
2011-08-28 08:50:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|