From 9a2bb06823eed1b88fae342d3e98a866b9359755 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 15 Apr 2015 08:20:33 +0300 Subject: [PATCH] dbms: fixed build [#METR-2944]. --- dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp b/dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp index b05abadc8ff..20685b96bb9 100644 --- a/dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp +++ b/dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp @@ -231,7 +231,9 @@ bool parse(DB::ASTPtr & ast, const std::string & query) { DB::ParserSelectQuery parser; std::string message; - ast = DB::tryParseQuery(parser, query.data(), query.data() + query.size(), message, false, ""); + auto begin = query.data(); + auto end = begin + query.size(); + ast = DB::tryParseQuery(parser, begin, end, message, false, ""); return !ast.isNull(); }