From 52a07dedb4c7433ef6073cedc3c8612b581d6436 Mon Sep 17 00:00:00 2001 From: obdev Date: Sat, 10 Feb 2024 00:34:47 +0000 Subject: [PATCH] Fix ret_code overwrite error --- src/sql/ob_sql.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sql/ob_sql.cpp b/src/sql/ob_sql.cpp index 3947022134..7c49cc5b36 100644 --- a/src/sql/ob_sql.cpp +++ b/src/sql/ob_sql.cpp @@ -2812,7 +2812,9 @@ int ObSql::generate_stmt(ParseResult &parse_result, // be off, we need reset value in pctx and initialize param frame accordingly. if (NULL != pc_ctx && NULL != pc_ctx->exec_ctx_.get_physical_plan_ctx()) { pc_ctx->exec_ctx_.get_physical_plan_ctx()->set_rich_format(context.session_info_->use_rich_format()); - pc_ctx->exec_ctx_.get_physical_plan_ctx()->init_datum_param_store(); + if (OB_FAIL(pc_ctx->exec_ctx_.get_physical_plan_ctx()->init_datum_param_store())) { + LOG_WARN("init datum param store failed", K(ret)); + } } } //add ref obj schema version to PL and ps info