From 07b16db5b2f90a448b29dee6c752abaa43122116 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 10 Mar 2014 18:49:36 +0400 Subject: [PATCH] dbms: addition to prev. revision [#METR-2944]. --- dbms/src/Interpreters/tests/expression_analyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Interpreters/tests/expression_analyzer.cpp b/dbms/src/Interpreters/tests/expression_analyzer.cpp index f4e67ca95cc..abe55518ba6 100644 --- a/dbms/src/Interpreters/tests/expression_analyzer.cpp +++ b/dbms/src/Interpreters/tests/expression_analyzer.cpp @@ -29,7 +29,7 @@ int main(int argc, char ** argv) } ASTPtr root; - ParserPtr parsers[] = {new ParserSelectQuery, new ParserExpressionList}; + ParserPtr parsers[] = {ParserPtr(new ParserSelectQuery), ParserPtr(new ParserExpressionList)}; for (size_t i = 0; i < sizeof(parsers)/sizeof(parsers[0]); ++i) { IParser & parser = *parsers[i];