Yes, this is true. I would point out, however, that you have the source code for JDBCR4 and could add this easily.

There are probably a million things like this -- useful features that could be added to stuff like JDBCR4. When I get a great tip like this one from Dan Kimmel, I will try to add them... But, it may be awhile due to my current medical condition.

If you can think of any other things you'd like to have in JDBCR4, please send them to me, and I'll keep a list.


On 2/4/2013 4:44 PM, James H. H. Lampert wrote:
On 2/4/13 10:34 AM, Dan Kimmel wrote:
JDBC abstracts away this kind of difference between underlying
databases. Use (Connection)con.setSchema(String schemaName) rather
than trying to work out which database engine you are using. Don't
use the "SET SCHEMA" or "USE " statements. Let the driver work out
what is the appropriate statement.

Except that as of yet, JDBCR4 doesn't appear to have an RPG-callable
front-end for setSchema. At least, not that I can see in a DSPSRVPGM or
in the source member.


This thread ...


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