From e1c4e4c9a7fc7c5a0563e98741d18f0d2aaa70d6 Mon Sep 17 00:00:00 2001 From: 0xacc Date: Wed, 7 Feb 2024 21:16:11 +0000 Subject: [PATCH] [to #53811093] fix storing CURSOR type result to REF CURSOR var caused mem leak --- src/sql/ob_spi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sql/ob_spi.cpp b/src/sql/ob_spi.cpp index 92dd5f3eb4..2b9f526bbe 100644 --- a/src/sql/ob_spi.cpp +++ b/src/sql/ob_spi.cpp @@ -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()