[to #32475164] fix typo by review 11475789

This commit is contained in:
obdev
2023-02-07 16:38:11 +08:00
committed by ob-robot
parent 7a30c1b33f
commit cf46abc3e9
2 changed files with 3 additions and 4 deletions

View File

@ -52,9 +52,7 @@ bool ObPackageStateVersion::operator ==(const ObPackageStateVersion &other)
{
bool b_ret = true;
if (package_version_ != other.package_version_
|| (package_body_version_ != OB_INVALID_VERSION
&& other.package_body_version_ != OB_INVALID_VERSION
&& package_body_version_ != other.package_body_version_)) {
|| package_body_version_ != other.package_body_version_) {
b_ret = false;
}
return b_ret;

View File

@ -884,7 +884,8 @@ int ObSPIService::spi_calc_subprogram_expr(ObPLExecCtx *ctx,
OZ (ObPLContext::get_exec_state_from_local(*session_info, package_id, routine_id, state));
CK (OB_NOT_NULL(state));
CK (OB_NOT_NULL(exec_ctx = state->get_exec_ctx().exec_ctx_));
CK (OB_NOT_NULL(expr = state->get_function().get_default_expr(expr_idx)));
CK (expr_idx >= 0 && expr_idx < state->get_function().get_expressions().count());
CK (OB_NOT_NULL(expr = state->get_function().get_expressions().at(expr_idx)));
if (OB_SUCC(ret)) {
ExecCtxBak exec_ctx_bak;
OX (exec_ctx_bak.backup(*exec_ctx));