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

Skip to content

Commit 470bb32

Browse files
committed
A bit of code cleanup
1 parent 1e71c99 commit 470bb32

5 files changed

Lines changed: 4 additions & 30 deletions

File tree

source/check_object_grants.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare
66
l_owner_column varchar2(128);
77

88
function get_view(a_dba_view_name varchar2) return varchar2 is
9-
l_invalid_object_name exception;
9+
l_invalid_object_name exception;
1010
l_result varchar2(128) := lower(a_dba_view_name);
1111
pragma exception_init(l_invalid_object_name,-44002);
1212
begin

source/core/ut_metadata.pkb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,5 @@ create or replace package body ut_metadata as
189189
return l_cnt > 0;
190190
end;
191191

192-
193192
end;
194193
/

source/expectations/data_values/ut_compound_data_value.tpb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,6 @@ create or replace type body ut_compound_data_value as
210210
begin
211211
l_other := treat(a_other as ut_compound_data_value);
212212
l_diff_id := ut_compound_data_helper.get_hash(self.data_id||l_other.data_id);
213-
-- dbms_output.put_line(ut_compound_data_helper.gen_compare_sql(
214-
-- a_inclusion_compare, a_is_negated, a_unordered,
215-
-- treat(a_other as ut_data_value_refcursor), a_join_by_list
216-
-- ));
217213
open l_loop_curs for
218214
ut_compound_data_helper.gen_compare_sql(
219215
a_inclusion_compare, a_is_negated, a_unordered,

source/expectations/data_values/ut_cursor_details.tpb

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ create or replace type body ut_cursor_details as
4040
null;
4141
end;
4242
return l_anytype;
43-
end;
44-
43+
end;
44+
4545
member procedure desc_compound_data(
4646
self in out nocopy ut_cursor_details, a_compound_data anytype,
4747
a_parent_name in varchar2, a_level in integer, a_access_path in varchar2
@@ -161,24 +161,6 @@ create or replace type body ut_cursor_details as
161161
return;
162162
end;
163163

164-
member function get_anytype_from_name(
165-
a_owner in varchar2, a_type_name in varchar2
166-
) return anytype is
167-
l_result anytype;
168-
begin
169-
begin
170-
$if dbms_db_version.version <= 12 $then
171-
l_result := anytype.getpersistent( a_owner, a_type_name );
172-
$else
173-
l_result := getanytypefrompersistent( a_owner, a_type_name );
174-
$end
175-
exception
176-
when others then
177-
null;
178-
end;
179-
return l_result;
180-
end;
181-
182164
member function is_collection (a_anytype_code in integer) return boolean is
183165
begin
184166
return coalesce(a_anytype_code in (dbms_types.typecode_varray,dbms_types.typecode_table,dbms_types.typecode_namedcollection),false);
@@ -188,7 +170,7 @@ create or replace type body ut_cursor_details as
188170
begin
189171
return is_collection(
190172
ut_compound_data_helper.get_anytype_members_info(
191-
get_anytype_from_name(a_owner, a_type_name)
173+
get_user_defined_type(a_owner, a_type_name)
192174
).type_code
193175
);
194176
end;

source/expectations/data_values/ut_cursor_details.tps

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ create or replace type ut_cursor_details force authid current_user as object (
2828
a_parent_name in varchar2, a_level in integer, a_access_path in varchar2
2929
),
3030
member function get_user_defined_type(a_owner varchar2, a_type_name varchar2) return anytype,
31-
member function get_anytype_from_name(
32-
a_owner in varchar2, a_type_name in varchar2
33-
) return anytype,
3431
member function is_collection(a_anytype_code in integer) return boolean,
3532
member function is_collection(a_owner varchar2, a_type_name varchar2) return boolean,
3633
member procedure ordered_columns(self in out nocopy ut_cursor_details, a_ordered_columns boolean := false)

0 commit comments

Comments
 (0)