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

Function parseQueryAndMovePosition

src/Parsers/parseQuery.cpp:355–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353
354
355ASTPtr parseQueryAndMovePosition(
356 IParser & parser,
357 const char * & pos,
358 const char * end,
359 const std::string & query_description,
360 bool allow_multi_statements,
361 size_t max_query_size,
362 size_t max_parser_depth)
363{
364 std::string error_message;
365 ASTPtr res = tryParseQuery(parser, pos, end, error_message, false, query_description, allow_multi_statements, max_query_size, max_parser_depth);
366
367 if (res)
368 return res;
369
370 throw Exception(error_message, ErrorCodes::SYNTAX_ERROR);
371}
372
373
374ASTPtr parseQuery(

Callers 6

parseQueryMethod · 0.85
parseQueryFunction · 0.85
splitMultipartQueryFunction · 0.85
readEntityFileFunction · 0.85
convertFromSqlToEntityFunction · 0.85

Calls 2

tryParseQueryFunction · 0.85
ExceptionClass · 0.50

Tested by

no test coverage detected