small refactoring + comments adding

This commit is contained in:
Nikita Mikhaylov 2020-02-10 12:27:57 +03:00
parent 5726d4c073
commit 1c41d73d9b
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,8 @@
//
// Created by jakalletti on 2/7/20.
//
#ifndef CLICKHOUSE_INTERNALS_H
#define CLICKHOUSE_INTERNALS_H
#endif //CLICKHOUSE_INTERNALS_H

View File

@ -21,8 +21,8 @@ public:
std::optional<TokenIterator> begin;
std::optional<TokenIterator> end;
ASTLiteral(Field && value_) : value(value_) {}
ASTLiteral(const Field & value_) : value(value_) {}
explicit ASTLiteral(Field && value_) : value(value_) {}
explicit ASTLiteral(const Field & value_) : value(value_) {}
/** Get the text that identifies this element. */
String getID(char delim) const override { return "Literal" + (delim + applyVisitor(FieldVisitorDump(), value)); }