| 353 | |
| 354 | |
| 355 | ASTPtr 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 | |
| 374 | ASTPtr parseQuery( |
no test coverage detected