| 396 | |
| 397 | |
| 398 | ASTPtr 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 | |
| 420 | ASTPtr parseQuery( |
no test coverage detected