If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Cursor closes after commit?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-04, 15:28
gandalf_me gandalf_me is offline
Registered User
 
Join Date: Mar 2004
Posts: 8
Cursor closes after commit?

Hi all,

I am connecting to DB2 8.1 on Solaris through JDBC using type 4 drivers (driver: com.ibm.db2.jcc.DB2Driver). Problem is that when a cursored query is done, the resultset gets closed after commit (resultset.next() throws SqlException "Invalid operation: result set closed").

Is there a way to tell DB2 not to close the resultset/cursor?

I am on JDK 1.3, so I am not able to use Resultset.HOLD_CURSORS_OVER_COMMIT which got introduced in JDK 1.4.

Is there any other way out?

Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On