#ifndef DBMS_PARSERS_ASTLITERAL_H #define DBMS_PARSERS_ASTLITERAL_H #include #include #include namespace DB { /** Литерал (атомарный) - число, строка, NULL */ class ASTLiteral : public IAST { public: Field value; /// тип DataTypePtr type; ASTLiteral() {} ASTLiteral(StringRange range_, const Field & value_) : IAST(range_), value(value_) {} /** Получить текст, который идентифицирует этот элемент. */ String getID() { return "Literal_" + boost::apply_visitor(FieldVisitorDump(), value); } }; } #endif