From 5dae35e24badcf0aac20a62e0fba45ea4658fa20 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 12 Oct 2023 03:09:45 +0000 Subject: [PATCH] [to #52549037] fix a typo and refresh mysqltest --- src/pl/ob_pl.cpp | 5 ++++- src/sql/ob_spi.cpp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pl/ob_pl.cpp b/src/pl/ob_pl.cpp index 4a35ef03b..1bdf27b7c 100644 --- a/src/pl/ob_pl.cpp +++ b/src/pl/ob_pl.cpp @@ -3233,16 +3233,19 @@ do { \ OX (get_params().at(i) = tmp); } else { // same type, we already check this on resolve stage, here directly assign value to symbol. - get_params().at(i) = params->at(i); if (get_params().at(i).is_ref_cursor_type()) { + get_params().at(i) = params->at(i); get_params().at(i).set_is_ref_cursor_type(true); } else if (pl_type.is_collection_type() && OB_INVALID_ID == params->at(i).get_udt_id()) { ObPLComposite *composite = NULL; + get_params().at(i) = params->at(i); get_params().at(i).set_udt_id(pl_type.get_user_type_id()); composite = reinterpret_cast(params->at(i).get_ext()); if (OB_NOT_NULL(composite) && composite->is_collection() && OB_INVALID_ID == composite->get_id()) { composite->set_id(pl_type.get_user_type_id()); } + } else { + get_params().at(i) = params->at(i); } } } diff --git a/src/sql/ob_spi.cpp b/src/sql/ob_spi.cpp index 700fd5b7b..d6db7c7cf 100644 --- a/src/sql/ob_spi.cpp +++ b/src/sql/ob_spi.cpp @@ -4356,7 +4356,8 @@ int ObSPIService::spi_cursor_close(ObPLExecCtx *ctx, package_id, routine_id, cursor_index, cur_var); OV (ignore ? true : NULL != cursor ? !cursor->is_invalid_cursor() : true, OB_ERR_INVALID_CURSOR); OZ (cursor_close_impl(ctx, cursor, cur_var.is_ref_cursor_type(), - package_id, routine_id, ignore)); + package_id, routine_id, ignore), + K(package_id), K(routine_id), K(cursor_index), K(cur_var)); if (OB_SUCC(ret) && DECL_PKG == loc) { OZ (spi_update_package_change_info(ctx, package_id, cursor_index)); }