Skip to content

Commit aa313e5

Browse files
committed
Fixed bug in parsing annotations from DDL trigger.
1 parent 566093a commit aa313e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/core/annotations/ut_annotation_manager.pkb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ create or replace package body ut_annotation_manager as
170170
a_sources_cursor sys_refcursor
171171
) is
172172
l_annotations ut_annotations;
173-
c_lines_fetch_limit constant integer := 1000;
173+
c_lines_fetch_limit constant integer := 10000;
174174
l_lines dbms_preprocessor.source_lines_t;
175175
l_names dbms_preprocessor.source_lines_t;
176176
l_name varchar2(250);
@@ -263,14 +263,14 @@ create or replace package body ut_annotation_manager as
263263
l_sql_text ora_name_list_t := a_sql_text;
264264
begin
265265
if a_parts > 0 then
266-
l_sql_text(1) := regexp_replace(l_sql_text(1),'^\s*create(\s+or\s+replace)?\s+', modifier => 'i');
266+
l_sql_text(1) := regexp_replace(l_sql_text(1),'^\s*create(\s+or\s+replace)?(\s+(non)?editionable)?\s+', modifier => 'i');
267267
for i in 1..a_parts loop
268268
ut_utils.append_to_clob(l_sql_clob, l_sql_text(i));
269269
end loop;
270270
l_sql_lines := ut_utils.convert_collection( ut_utils.clob_to_table(l_sql_clob) );
271271
end if;
272272
open l_result for
273-
select a_object_name as name, column_value||chr(10) as text from table(l_sql_lines);
273+
select a_object_name as name, column_value||chr(10) as text from table(l_sql_lines) where rownum <1;
274274
return l_result;
275275
end;
276276
begin

0 commit comments

Comments
 (0)