@@ -35,19 +35,16 @@ create or replace package body ut_annotation_cache_manager as
3535 if ora_sysevent is null or a_object.annotations is not null and a_object.annotations.count > 0 then
3636
3737 update ut_annotation_cache_info i
38- set i.parse_time = l_timestamp,
39- i.is_annotated = case when a_object.annotations is not empty then 'Y' else 'N' end
38+ set i.parse_time = l_timestamp
4039 where (i.object_owner, i.object_name, i.object_type)
4140 in ((a_object.object_owner, a_object.object_name, a_object.object_type))
4241 returning cache_id into l_cache_id;
4342
4443 if sql%rowcount = 0 then
4544
4645 insert into ut_annotation_cache_info
47- (cache_id, object_owner, object_name, object_type, parse_time, is_annotated)
48- values (ut_annotation_cache_seq.nextval, a_object.object_owner, a_object.object_name, a_object.object_type, l_timestamp,
49- case when a_object.annotations is not empty then 'Y' else 'N' end
50- )
46+ (cache_id, object_owner, object_name, object_type, parse_time)
47+ values (ut_annotation_cache_seq.nextval, a_object.object_owner, a_object.object_name, a_object.object_type, l_timestamp)
5148 returning cache_id into l_cache_id;
5249 end if;
5350
@@ -108,11 +105,10 @@ create or replace package body ut_annotation_cache_manager as
108105 and o.object_owner = i.object_owner)
109106 when matched then
110107 update
111- set parse_time = l_timestamp,
112- is_annotated = 'N'
108+ set parse_time = l_timestamp
113109 when not matched then insert
114- (cache_id, object_owner, object_name, object_type, parse_time, is_annotated )
115- values (ut_annotation_cache_seq.nextval, o.object_owner, o.object_name, o.object_type, l_timestamp, 'N' );
110+ (cache_id, object_owner, object_name, object_type, parse_time)
111+ values (ut_annotation_cache_seq.nextval, o.object_owner, o.object_name, o.object_type, l_timestamp);
116112
117113 commit;
118114 end;
0 commit comments