Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44d61d9

Browse files
committed
Recovering exception handlers as they are needed for handling invalid object names.
1 parent 74ec9a1 commit 44d61d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

source/core/ut_metadata.pkb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ create or replace package body ut_metadata as
7777

7878
-- expect both package and body to be valid
7979
return l_cnt = 1;
80+
exception
81+
when others then
82+
return false;
8083
end;
8184

8285
function procedure_exists(a_owner_name varchar2, a_package_name in varchar2, a_procedure_name in varchar2)
@@ -101,6 +104,9 @@ create or replace package body ut_metadata as
101104

102105
--expect one method only for the package with that name.
103106
return l_cnt = 1;
107+
exception
108+
when others then
109+
return false;
104110
end;
105111

106112
function get_source_definition_line(a_owner varchar2, a_object_name varchar2, a_line_no integer) return varchar2 is

0 commit comments

Comments
 (0)