[CP] [to #54556134] fix resolve_symbol with PKG_VAR
This commit is contained in:
parent
fc6792c103
commit
d4b1afb76e
@ -1794,6 +1794,7 @@ int ObPLExternalNS::resolve_external_symbol(const common::ObString &name,
|
||||
LOG_WARN("self or resolve package not exist", K(ret));
|
||||
} else {
|
||||
if (OB_NOT_NULL(parent_ns_)
|
||||
&& parent_ns_->get_database_id() == package_info_resolve->get_database_id()
|
||||
&& ObCharset::case_compat_mode_equal(parent_ns_->get_package_name(), package_info_resolve->get_package_name())) {
|
||||
if (OB_FAIL(
|
||||
SMART_CALL(parent_ns_->resolve_symbol(name, type, data_type, parent_id, var_idx)))) {
|
||||
@ -1828,7 +1829,8 @@ int ObPLExternalNS::resolve_external_symbol(const common::ObString &name,
|
||||
type = ObPLExternalNS::PKG_TYPE;
|
||||
}
|
||||
} else {
|
||||
OX (data_type = var->get_type());
|
||||
data_type = var->get_type();
|
||||
type = ObPLExternalNS::PKG_VAR;
|
||||
}
|
||||
if (OB_SUCC(ret) && type != ObPLExternalNS::INVALID_VAR) {
|
||||
if (OB_NOT_NULL(dependency_table_)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user