bug fix: db_id displayed by SQL audit and plan stat is inconsistent.

This commit is contained in:
obdev
2024-02-09 06:58:58 +00:00
committed by ob-robot
parent 1b95cb059a
commit 8bc44950fe
8 changed files with 16 additions and 14 deletions

View File

@ -2511,7 +2511,7 @@ OB_INLINE int ObSql::handle_text_query(const ObString &stmt, ObSqlCtx &context,
LOG_WARN("Failed to get database id", K(ret));
} else if (FALSE_IT(context.spm_ctx_.bl_key_.db_id_ =
(database_id == OB_INVALID_ID) ?
OB_OUTLINE_DEFAULT_DATABASE_ID:
OB_MOCK_DEFAULT_DATABASE_ID:
database_id)) {
// do nothing
} else if (!use_plan_cache) {