MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / parseQueryAndMovePosition

Function parseQueryAndMovePosition

src/Parsers/parseQuery.cpp:398–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397
398ASTPtr parseQueryAndMovePosition(
399 IParser & parser,
400 const char * & pos,
401 const char * end,
402 const std::string & query_description,
403 bool allow_multi_statements,
404 size_t max_query_size,
405 size_t max_parser_depth,
406 size_t max_parser_backtracks)
407{
408 std::string error_message;
409 ASTPtr res = tryParseQuery(
410 parser, pos, end, error_message, false, query_description, allow_multi_statements,
411 max_query_size, max_parser_depth, max_parser_backtracks, true);
412
413 if (res)
414 return res;
415
416 throw Exception::createDeprecated(error_message, ErrorCodes::SYNTAX_ERROR);
417}
418
419
420ASTPtr parseQuery(

Callers 9

parseQueryFunction · 0.85
splitMultipartQueryFunction · 0.85
refreshEntitiesMethod · 0.85
sendQueryMethod · 0.85
parseQueryMethod · 0.85
formatQueryFunction · 0.85

Calls 1

tryParseQueryFunction · 0.85

Tested by

no test coverage detected