From 4bc4349d20d53c0e04838faed66ae98b703d9e29 Mon Sep 17 00:00:00 2001 From: hanr881 <1741282579@qq.com> Date: Tue, 17 Oct 2023 06:09:35 +0000 Subject: [PATCH] to issue<52687254>:fix pl complex type argument default value check issue --- src/pl/ob_pl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pl/ob_pl.cpp b/src/pl/ob_pl.cpp index 1bdf27b7c5..577a73ea8d 100644 --- a/src/pl/ob_pl.cpp +++ b/src/pl/ob_pl.cpp @@ -2898,7 +2898,8 @@ int ObPLExecState::check_routine_param_legal(ParamStore *params) if (OB_SUCC(ret) && NULL != params) { for (int64_t i = 0; OB_SUCC(ret) && i < params->count(); ++i) { const ObPLDataType &dest_type = func_.get_variables().at(i); - if (params->at(i).is_null()) { + if (params->at(i).is_null() || + params->at(i).is_pl_mock_default_param()) { // need not check } else if (!params->at(i).is_ext()) { // basic type if (!dest_type.is_obj_type()) {