MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » February 2013

Fascinating: JDBCR4 "JDBC_ConnProp" defaults to 'naming' = 'sql'



I got JDBCTEST[C]3 running today, using a familiar DB2/400 file (AQUESTVIEW/VIEWCUS, of course), and discovered that until I added the call:
JDBC_setProp(prop: 'naming' : 'system')

it would blow sky-high, as soon as it tried to jdbc_GetMetaData, throwing dumps to both STDOUT and several spool files, and tying up the job for a good minute or so before abending without releasing all its resources.

Then, I found out that if I checked the result set before attempting to retrieve the meta-data, to verify that it wasn't null, it would abort cleanly if the naming property wasn't set properly.

You learn something new every day. And the biggest surprise I've had in this project is that the pleasant surprises have outnumbered the unpleasant ones.

--
JHHL





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact