If package body contains result_cache function with RELIES_ON () clause then SQL Nav 6.5:
- incorrect displays the package body structure in Outline window;
- compiles the package body with error ORA-00900.
If package body contains result_cache function with RELIES_ON () clause then SQL Nav 6.5:
Hi Nicolay,
I was not able to reproduce the issue. Could you please provide an example?
Note that RELIES_ON clause makes sense only in 11g R1, R2 takes care of the dependencies automatically.
Regards,
Roman
Sorry, RELIES_ON clause should contain more one data_source element.
Note. It depends what do you want exactly, for example you select from 3 tables but want that cache should depends from 2 tables only.
Hi Nicolay,
We are confident that we used the correct syntax to test this issue and RESULT_CACHE didn’t cause any problems to the Outline or the compilation error you mentioned, with or without the RELIES_ON clause. That’s why we requested for more information from you.
My note about RELIES_ON clause was simply referring to the following paragraph from Oracle documentation (and has nothing to do with your issue):
Note: The RELIES ON clause is unnecessary in 11.2 as it automatically tracks dependencies and invalidates the cached results when necessary.
Regards,
Roman
About Note, I know this paragraph from Oracle documentation but it related to 11.2 only, but
About Note, I know this paragraph from Oracle documentation but it related to 11.2 only, but
Hi Nicolay,
Thank you for the provided example. I can see the problem now. Our parser gets confused because of the comma in the RELIES_ON clause. When I specify only one object in the list, it works fine. I will raise a CR and will let you know when it’s going to be addressed. In the meantime, a workaround is to run the script with the RELIES_ON clause removed or reduced to one item, and then open the package and adjust the list.
Hope this helps,
Roman
CR 14271 has been raised