×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Good to know. Not intuitive, to me, anyway. I suppose an indicator is as close to boolean as RPG offers. It does make sense that the signature would be wrong. There must be a type conversion chart in a reference manual somewhere we could point people towards.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Monday, March 25, 2013 4:30 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: JDBCR4 help: having trouble front-ending Java DatabaseMetaData.getIndexInfo() for ILE RPG
On 3/25/2013 1:31 PM, Dan Kimmel wrote:
Yes, jdbc_freeResult(rs) will throw a null-pointer exception if rs is null.
The code looks pretty good, syntax-wise.
dbmd must be a reference to a java object derived from aConnection.getMetaData().
unique and approximate are going to have to be hex '01' or hex '00'. 1N is an indicator type. In RPG an indicator is either hex 'F1' or hex 'F0'.
If you code the parameters as 1N, RPG will take care of the conversion between RPG indicators and Java booleans.
And it wouldn't work anyway to use A instead of N on the prototype. That would cause RPG to create the wrong signature for the method, using B
(byte) instead of Z (boolean). You'd get a method-not-found error on the call.
--
Barbara
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.