mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
Some style fixes
This commit is contained in:
parent
502d86bd02
commit
2f8864a6ea
@ -7,14 +7,16 @@ namespace DB
|
||||
|
||||
/** name CHECK logical_expr
|
||||
*/
|
||||
class ASTConstraintDeclaration : public IAST {
|
||||
class ASTConstraintDeclaration : public IAST
|
||||
{
|
||||
public:
|
||||
String name;
|
||||
IAST *expr;
|
||||
|
||||
String getID(char) const override { return "Constraint"; }
|
||||
|
||||
ASTPtr clone() const override {
|
||||
ASTPtr clone() const override
|
||||
{
|
||||
auto res = std::make_shared<ASTConstraintDeclaration>();
|
||||
|
||||
res->name = name;
|
||||
@ -25,7 +27,8 @@ public:
|
||||
return res;
|
||||
}
|
||||
|
||||
void formatImpl(const FormatSettings &s, FormatState &state, FormatStateStacked frame) const override {
|
||||
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override
|
||||
{
|
||||
frame.need_parens = false;
|
||||
std::string indent_str = s.one_line ? "" : std::string(4 * frame.indent, ' ');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user