to issue<49906188>:fix core about package var as udf out param

This commit is contained in:
hanr881
2023-05-25 12:46:54 +00:00
committed by ob-robot
parent e69feb29f3
commit 1a7bbd1f3d
2 changed files with 6 additions and 9 deletions

View File

@ -370,16 +370,9 @@ int ObExprUDF::process_out_params(const ObObj *objs_stack,
} else {
OZ (deep_copy_obj(*pkg_allocator, obj, obj));
}
OZ (ObSPIService::spi_set_package_variable(
&exec_ctx,
NULL,
params_desc.at(i).get_package_id(),
params_desc.at(i).get_index(),
iparams.at(i)));
int tmp_ret = OB_SUCCESS;
tmp_ret = pl::ObUserDefinedType::destruct_obj(iparams.at(i), exec_ctx.get_my_session());
ret = OB_SUCCESS == ret ? tmp_ret : ret;
}
OZ (ObSPIService::spi_update_package_change_info(&plctx, params_desc.at(i).get_package_id(),
params_desc.at(i).get_index()));
}
}
return ret;