[CP] Fix the issue where the physical plan ps_stmt_id of the PS statement is not displayed correctly.

This commit is contained in:
GongYusen 2024-09-20 10:15:23 +00:00 committed by ob-robot
parent d5b5751a44
commit 16c8fda6c8

View File

@ -1319,7 +1319,7 @@ int ObPhysicalPlan::update_cache_obj_stat(ObILibCacheCtx &ctx)
stat_.stmt_))) {
SQL_PC_LOG(WARN, "fail to set truncate string", K(ret));
}
stat_.ps_stmt_id_ = pc_ctx.fp_result_.pc_key_.key_id_;
stat_.ps_stmt_id_ = pc_ctx.sql_ctx_.statement_id_;
} else {
ObTruncatedString trunc_stmt(pc_ctx.sql_ctx_.spm_ctx_.bl_key_.constructed_sql_, sql_length);
if (OB_FAIL(ob_write_string(get_allocator(),