Skip to content

Improve hasOutput check to a real PL/SQL type-check #69

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

Merged
merged 10 commits into from
Jan 16, 2019

Conversation

pesse
Copy link
Member

@pesse pesse commented Jan 11, 2019

Thanks Jacek for the hint!
It's also less verbose now.

" begin " +
" execute immediate '" +
" begin " +
" :x := case ' || ? || '() is of (ut_output_reporter_base) when true then 1 else 0 end;" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep dbms_assert.valid_sql_name call.
It's a build in function that checks object name valid and that it is visible to user.
It is far safer than regex check.
You can still have both

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the failed attempts. It's problematic on 11g as it seems.
I'll give it one last try.

@pesse pesse merged commit c72bef0 into develop Jan 16, 2019
@pesse pesse deleted the bugfix/reporter_has_output_check branch February 5, 2019 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants