mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: fixed build [#METR-2944].
This commit is contained in:
parent
3a658e4b26
commit
9a2bb06823
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user