[to #53811093] fix storing CURSOR type result to REF CURSOR var caused mem leak

This commit is contained in:
0xacc
2024-02-07 21:16:11 +00:00
committed by ob-robot
parent 8924627121
commit e1c4e4c9a7

View File

@ -7419,8 +7419,7 @@ int ObSPIService::convert_obj(ObPLExecCtx *ctx,
LOG_DEBUG("column convert", K(obj.get_meta()), K(result_types[i].get_meta_type()),
K(current_type.at(i)), K(result_types[i].get_accuracy()));
if (obj.is_pl_extend()/* && pl::PL_RECORD_TYPE == obj.get_meta().get_extend_type()*/
&& result_types[i].get_meta_type().is_ext()
&& obj.get_meta().get_extend_type() != PL_CURSOR_TYPE) {
&& result_types[i].get_meta_type().is_ext()) {
//record嵌object场景,object属性在resolver阶段要求强一致,无需强转
OZ (calc_array.push_back(obj));
} else if (obj.get_meta() == result_types[i].get_meta_type()