KeyofSea123
12 years agoContributor
JBDC Request results
I have a JDBC request that is returning the following:
<Results>
<ResultSet fetchSize="10"/>
</Results>
It relies on a DataSource that only returns one row. If I run the DataSource manually and put 1 in the 'Specify max number of rows to get', it works and looks like this. I replaced personal data with ***.
<Results>
<ResultSet fetchSize="10">
<Row rowNumber="1">
<PARTY_NUMBER>130489</PARTY_NUMBER>
<PARTY_ID>161741</PARTY_ID>
<PERSON_FIRST_NAME>***</PERSON_FIRST_NAME>
<PERSON_LAST_NAME>***</PERSON_LAST_NAME>
<PHONE_NUMBER>6685819464</PHONE_NUMBER>
<EMAIL_ADDRESS/>
<ADDRESS1>1395 CUNNINGHAM RD SW APT 1905</ADDRESS1>
<ADDRESS2/>
<ADDRESS3/>
<ADDRESS4/>
<CITY>***</CITY>
<COUNTY>***</COUNTY>
<STATE>**</STATE>
<COUNTRY>US</COUNTRY>
<POSTAL_CODE>***</POSTAL_CODE>
<PARTY_NAME>*** ***</PARTY_NAME>
<PARTY_TYPE>PERSON</PARTY_TYPE>
</Row>
</ResultSet>
</Results>
How do I set the max number of rows to 1 automatically or programatically?
<Results>
<ResultSet fetchSize="10"/>
</Results>
It relies on a DataSource that only returns one row. If I run the DataSource manually and put 1 in the 'Specify max number of rows to get', it works and looks like this. I replaced personal data with ***.
<Results>
<ResultSet fetchSize="10">
<Row rowNumber="1">
<PARTY_NUMBER>130489</PARTY_NUMBER>
<PARTY_ID>161741</PARTY_ID>
<PERSON_FIRST_NAME>***</PERSON_FIRST_NAME>
<PERSON_LAST_NAME>***</PERSON_LAST_NAME>
<PHONE_NUMBER>6685819464</PHONE_NUMBER>
<EMAIL_ADDRESS/>
<ADDRESS1>1395 CUNNINGHAM RD SW APT 1905</ADDRESS1>
<ADDRESS2/>
<ADDRESS3/>
<ADDRESS4/>
<CITY>***</CITY>
<COUNTY>***</COUNTY>
<STATE>**</STATE>
<COUNTRY>US</COUNTRY>
<POSTAL_CODE>***</POSTAL_CODE>
<PARTY_NAME>*** ***</PARTY_NAME>
<PARTY_TYPE>PERSON</PARTY_TYPE>
</Row>
</ResultSet>
</Results>
How do I set the max number of rows to 1 automatically or programatically?