to issue<49860566>:fix core when using package var as udf out param

This commit is contained in:
hanr881
2023-05-23 01:41:32 +00:00
committed by ob-robot
parent 67986e6122
commit 5f81d12222

View File

@ -368,6 +368,15 @@ 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;
}
}
}