[to #46374032] check JSON_OBJECT_T call undeclared component

This commit is contained in:
obdev
2023-01-05 09:12:14 +00:00
committed by ob-robot
parent 110881e2ad
commit da420ad3c8

View File

@ -2141,8 +2141,8 @@ int ObPLBlockNS::find_sub_attr_by_name(const ObUserDefinedType &user_type,
LOG_WARN("PLS-00302: component 'A' must be declared", K(ret), K(access_ident), K(user_type)); LOG_WARN("PLS-00302: component 'A' must be declared", K(ret), K(access_ident), K(user_type));
} }
} else { } else {
ret = OB_ERR_UNEXPECTED; ret = OB_ERR_COMPONENT_UNDECLARED;
LOG_WARN("unexpected user type in find_sub_attr_by_name", K(ret), K(user_type)); LOG_USER_ERROR(OB_ERR_COMPONENT_UNDECLARED, attr_name.length(), attr_name.ptr());
} }
return ret; return ret;
} }