10000 Creating a list of annotations allowed to treat package as annotated by lwasylow · Pull Request #1297 · utPLSQL/utPLSQL · GitHub
[go: up one dir, main page]

Skip to content

Creating a list of annotations allowed to treat package as annotated #1297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove debug
  • Loading branch information
lwasylow committed Apr 4, 2025
commit 0e2efabfd4db206a1be57fb18e2f7c1b409593cb
18 changes: 0 additions & 18 deletions source/core/annotations/ut_annotation_manager.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,6 @@ create or replace package body ut_annotation_manager as
where x.is_annotated = 'Y'
order by x.name, x.line]'
using a_objects_to_refresh;
raise_application_error(-20001, q'[select /*+ no_parallel */ x.name, x.text
from (select /*+ cardinality( r ]'||l_card||q'[ )*/
s.name, s.text, s.line,
max(case when s.text like '%--%\%%' escape '\'
and regexp_like(s.text,'^\s*--\s*]'||l_allowed_annotations||q'[%')
then 'Y' else 'N' end
)
over(partition by s.name) is_annotated
from table(:a_objects_to_refresh) r
join ]'||l_sources_view||q'[ s
on s.name = r.object_name
and s.owner = r.object_owner
and s.type = r.object_type
where s.owner = ']'||ut_utils.qualified_sql_name(a_object_owner)||q'['
and s.type = ']'||ut_utils.qualified_sql_name(a_object_type)||q'['
) x
where x.is_annotated = 'Y'
order by x.name, x.line]');
return l_result;
end;

Expand Down
Loading
0