Daniel Migowski <dmigowski(at)ikoffice(dot)de> wrote:
> A small demo for the bug is attached.
The javadocs for Connection:
| JDBC applications should use the appropritate Connection method
| such as setAutoCommit or setTransactionIsolation. Applications
| should not invoke SQL commands directly to change the connection's
| configuration when there is a JDBC method available.
I take that to mean that the right way to do this is to set
autoCommit to false and use the connection's commit() method. If
you do it that way, is there a problem?
In response to
pgsql-jdbc by date
|Next:||From: Dave Cramer||Date: 2011-12-23 01:00:07|
|Subject: Re: Bug: Transaction still open after error when autocommit=true|
|Previous:||From: Daniel Migowski||Date: 2011-12-22 21:09:43|
|Subject: Bug: Transaction still open after error when autocommit=true|