fix extract onetime expr bug of sharing query ref expr

This commit is contained in:
obdev
2022-11-03 01:36:06 +00:00
committed by wangzelin.wzl
parent 13774e3016
commit 77839a046e
3 changed files with 15 additions and 7 deletions

View File

@ -460,7 +460,7 @@ int get_proc_db_name(
} else {
uint64_t tenant_id = ctx.session_info_->get_login_tenant_id();
ObSchemaGetterGuard &schema_guard = *ctx.schema_guard_;
uint64_t db_id;
uint64_t db_id = OB_INVALID_ID;
const ObDatabaseSchema *db_schema = NULL;
if (static_cast<uint64_t>(ObObjectType::FUNCTION) == need_priv.obj_type_) {
const ObRoutineInfo *routine_schema = NULL;
@ -494,7 +494,7 @@ int get_seq_db_name(
ObString &db_name)
{
int ret = OB_SUCCESS;
uint64_t db_id;
uint64_t db_id = OB_INVALID_ID;
const ObSequenceSchema *seq_schema = NULL;
const ObDatabaseSchema *db_schema = NULL;
OZ (schema_guard.get_sequence_schema(tenant_id, obj_id, seq_schema));