Skip to content
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

is_valid_number bug in plsql compiler setting 3 #186

Open
martindsouza opened this issue Apr 26, 2018 · 1 comment
Open

is_valid_number bug in plsql compiler setting 3 #186

martindsouza opened this issue Apr 26, 2018 · 1 comment
Labels

Comments

@martindsouza
Copy link
Member

martindsouza commented Apr 26, 2018

Told to me by @ragFOEX. Peter can you please provide more information?

Issue seems to be that since we're not using the variable the compiler ignores it.

ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL = 3
ALTER SESSION SET PLSQL_CODE_TYPE      = 'NATIVE'
@ragFOEX
Copy link

ragFOEX commented Apr 26, 2018

I reported this on AskTom a while ago: https://asktom.oracle.com/pls/apex/asktom.search?tag=plsql-optimize-level-3-produces-wrong-function-result

Basically PLSQL_OPTIMIZE_LEVEL = 3 strips away the is_valid_x function and returns always TRUE, because the converted result (the number/date variable) is never used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants