[CP] Fix the issue where the physical plan ps_stmt_id of the PS statement is not displayed correctly.
This commit is contained in:
parent
d5b5751a44
commit
16c8fda6c8
@ -1319,7 +1319,7 @@ int ObPhysicalPlan::update_cache_obj_stat(ObILibCacheCtx &ctx)
|
|||||||
stat_.stmt_))) {
|
stat_.stmt_))) {
|
||||||
SQL_PC_LOG(WARN, "fail to set truncate string", K(ret));
|
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 {
|
} else {
|
||||||
ObTruncatedString trunc_stmt(pc_ctx.sql_ctx_.spm_ctx_.bl_key_.constructed_sql_, sql_length);
|
ObTruncatedString trunc_stmt(pc_ctx.sql_ctx_.spm_ctx_.bl_key_.constructed_sql_, sql_length);
|
||||||
if (OB_FAIL(ob_write_string(get_allocator(),
|
if (OB_FAIL(ob_write_string(get_allocator(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user