Re: Multiple ResultSets
- From: Joe Weinstein <joeNOSPAM@xxxxxxx>
- Date: Thu, 25 Aug 2005 17:33:41 -0700
jaya nair wrote:
Hi I have a stored procedure which returns mulitple resultsets
rs = call.executeQuery();
call.getMoreResults();
irs = call.getResultSet();
I want to pass these two resultsets to another method.
When i pass these two i get error saying "ResultSet is closed" for the first resultset.
i came to know there is method in jdk1.4.2 which keeps the resultsets open.
"call.getMoreResults(Statement.Keep_Current_Result)"
But i tried to use that But again i have another problem
Im using WSAD5.1 which uses to jdk1.4.1
So i configured the setting in WSAD so that it uses jdk1.4.2.
So at compile time im not gettign any problem
But at runtime it says
"getMoreResults(int) is not supported by webshpere java.sql.Statement Implementation"
Can you please help me regarding this.. Thanks in Advance
Hi. By JDBC spec, getMoreResults() will close any previous result set. You have to do whatever processing you want with a given resultset before getting another from the same statement.
Joe Weinstein at BEA Systems
.
- References:
- Multiple ResultSets
- From: jaya nair
- Multiple ResultSets
- Prev by Date: Re: Stored Procedure error is not catched
- Next by Date: Re: Stored Procedure error is not catched
- Previous by thread: Multiple ResultSets
- Index(es):
Relevant Pages
|
Loading