How where clause is evaluated with functions?
Good morning,
I have migrated a database (expdp/impdp) from 11.2.0.4 SE to 19.3.0.0 EE and I am having some problems with several cursors which used to spend a few seconds and now spend more than 20 minutes. Debuging the procedures I have seen the problem is that in 19.3.0.0 EE go into the function and on the other versions (I have tested from 11.2.0.4 SE to 19.3.0.0 SE and 18 EE) it doesn't go into. Keep in mind the query doesn't return any value in any version because data is the same.
The weird thing is that if function condition is moved to the end of where clause, it is not executed and therefore the result is immediate.