[to #49328715] fix a -4016 problem of trigger parser

This commit is contained in:
0xacc
2023-05-11 12:11:23 +00:00
committed by ob-robot
parent 4ead928e53
commit d89b3ef9ef
5 changed files with 19 additions and 7 deletions

View File

@ -982,7 +982,8 @@ int ObParser::parse(const ObString &query,
ParseResult &parse_result,
ParseMode parse_mode,
const bool is_batched_multi_stmt_split_on,
const bool no_throw_parser_error)
const bool no_throw_parser_error,
const bool is_pl_inner_parse)
{
int ret = OB_SUCCESS;
@ -1101,7 +1102,7 @@ int ObParser::parse(const ObString &query,
}
} else {
ObPLParser pl_parser(*(ObIAllocator*)(parse_result.malloc_pool_), connection_collation_);
if (OB_FAIL(pl_parser.parse(stmt, stmt, parse_result))) {
if (OB_FAIL(pl_parser.parse(stmt, stmt, parse_result, is_pl_inner_parse))) {
LOG_WARN("failed to parse stmt as pl", K(stmt), K(ret));
// may create ddl func, try it.
if ((OB_ERR_PARSE_SQL == ret