to issue<50964133>:fix core when execute call stmt in ps mode

This commit is contained in:
hanr881
2023-07-18 09:12:13 +00:00
committed by ob-robot
parent 6f619f09bc
commit 94e397aaad

View File

@ -2763,7 +2763,7 @@ int ObPLExecState::init_params(const ParamStore *params, bool is_anonymous)
OZ (ctx_.exec_ctx_->init_pl_ctx());
CK (OB_NOT_NULL(ctx_.exec_ctx_->get_pl_ctx()));
}
if (OB_SUCC(ret) && ctx_.exec_ctx_->get_sql_ctx()->is_execute_call_stmt_) {
if (OB_SUCC(ret) && top_call_ && ctx_.exec_ctx_->get_sql_ctx()->is_execute_call_stmt_) {
OZ (check_routine_param_legal(const_cast<ParamStore *>(params)));
}
OZ (get_params().reserve(func_.get_variables().count()));