Community
Participate
Working Groups
Build Identifier: 20090920-1017 Running reports using legacy stored procs that self audit shows that the query(s) are being executed twice for each report. A little digging shows that jConnect is listed under policy type 2 in oda-jdbc.jar/config.xml which means the query is first executed with a max rows of 1, metadata obtained and then executed again with the correct max rows value to get the full resultset. I modified config.xml to put jConnect in policy type 1 which means the query is executed, result sets cached, metadata obtained and then the result set used later. I have (thus far) not seen any issue with this. I am looking to find out why jConnect is set to policy type 2 in the first place and whether moving to 1 will have any consequences. If there are none, can it be moved to policy 1 permanently? Reproducible: Always
Created attachment 175376 [details] The modified config.xml
I am using jConnect3 v6.0.5 and jConnect2 v5.5 drivers to test this. Both exhibit the same behaviour.
Created attachment 175377 [details] Sample report. Attached sample report. Inserts into a table called AUDIT_LOG and then queries sysobjects.
move jConnect to policy category 1. fix this issue.
Verified in daily build 3.7.0.20110427