Cursors removed with commit

From: Christophe Canovas <cc(dot)ais40(at)wanadoo(dot)fr>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Cursors removed with commit
Date: 2014-08-20 13:39:12
Message-ID: 10564239.43.1408541952917.JavaMail.root@zimbra.cy.cassidian.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

I have a problem with my huge database ; using cursors (so using a transaction with noautocommit, statement with type_forward_only) make cursors removed if I update and save (commit) database values in the same transaction during the fetch loop.

Error message is : portal "C_03" doesn't exist

All is fine if the commit is done in a different transaction.

In more details, in the statement creation :
con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT);
the last parameter seems to have no effect ... ?

Best Regards,
Christophe

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Christophe Canovas 2014-08-20 14:22:36 Re: Cursors removed with commit
Previous Message Dave Cramer 2014-08-20 13:09:28 Re: JDBC build broken by commit 9f9019b