[to #49482918] fix error code of combined usage of Ordinal binding and Named binding

This commit is contained in:
0xacc
2023-05-10 14:15:20 +00:00
committed by ob-robot
parent ed4922aca0
commit 6bb1a8b703
2 changed files with 4 additions and 0 deletions

View File

@ -329,6 +329,9 @@ int ObPLParser::parse_stmt_block(ObParseCtx &parse_ctx, ObStmtNodeTree *&multi_s
K_(parse_ctx.is_dynamic),
K_(parse_ctx.is_for_preprocess),
K(ret));
if (OB_NOT_SUPPORTED == ret) {
LOG_USER_ERROR(OB_NOT_SUPPORTED, parse_ctx.global_errmsg_);
}
}
} else {
multi_stmt = parse_ctx.stmt_tree_;

View File

@ -36,4 +36,5 @@ static const int32_t OB_PARSER_ERR_NON_INT_LITERAL = -9605;
static const int32_t OB_PARSER_ERR_NUMERIC_OR_VALUE_ERROR = -5677;
static const int32_t OB_PARSER_ERR_NON_INTEGRAL_NUMERIC_LITERAL = -9670;
static const int32_t OB_PARSER_ERR_UNDECLARED_VAR = -5543;
static const int32_t OB_PARSER_ERR_UNSUPPORTED = -4007;
#endif /*OCEANBASE_SQL_PARSER_PARSE_DEFINE_*/