to issue<49860566>:fix core when using package var as udf out param
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user