From a4544ac498830703f8044cd56d0d06fc35d387e5 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 26 Feb 2018 06:47:32 +0300 Subject: [PATCH] Fixed error [#CLICKHOUSE-2] --- dbms/src/Parsers/IParserBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Parsers/IParserBase.cpp b/dbms/src/Parsers/IParserBase.cpp index c1a17805068..dffb1d7597d 100644 --- a/dbms/src/Parsers/IParserBase.cpp +++ b/dbms/src/Parsers/IParserBase.cpp @@ -22,7 +22,7 @@ bool IParserBase::parse(Pos & pos, ASTPtr & node, Expected & expected) node = nullptr; pos = begin; } - else + else if (node) node->range = StringRange(begin, pos); return res;