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

Skip to content

Commit 6c513be

Browse files
committed
Fix regex extraction for procedure/function names and ensure ordered results in annotation processing
1 parent 6717ad3 commit 6c513be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/core/annotations/ut_annotation_parser.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ create or replace package body ut_annotation_parser as
160160
and regexp_like(l_line, '^\s*(procedure|function)\s+', 'i')
161161
then
162162
-- extract just the identifier name (subexpression 2)
163-
l_proc_name := trim(regexp_substr(l_line
163+
l_proc_name := trim(regexp_substr(srcstr =>l_line
164164
,pattern => '^\s*(procedure|function)\s+('||gc_regexp_identifier||')'
165165
,modifier => 'i'
166166
,subexpression => 2));
@@ -310,7 +310,7 @@ create or replace package body ut_annotation_parser as
310310
l_comment_index := l_comments.next(l_comment_index);
311311
end loop;
312312

313-
select /*+ no_parallel */ value(x) bulk collect into l_result from table(l_annotations) x order by x.position;
313+
select /*+ no_parallel */ value(x) bulk collect into l_result from table(l_annotations) x order by x.position asc;
314314

315315
return l_result;
316316

0 commit comments

Comments
 (0)