Re: problem with transactions - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: problem with transactions
Date
Msg-id Pine.BSO.4.56.0405100856070.3692@leary.csoft.net
Whole thread Raw
In response to problem with transactions  (pginfo <pginfo@t1.unisoftbg.com>)
List pgsql-jdbc

On Mon, 10 May 2004, pginfo wrote:

> Hi,
>
> We are using pg 7.4.2 + jdbc to connect to jboss.
>
> Connection con = ... I get connection to my db.
> con.setAutoCommit(false);    // begin transaction
> // do some inserts
> con.rollback(); // rollback
> con.setAutoCommit(true);    // set autocommit. We are using connection
> pool and will to have clear connection.
>
> For my supprice the last example do not rollback any inserts !

I find that very hard to believe.  The attached file shows the expected
behavior for me.  If it fails for you or you can modify it to fail, I
would be very interested.

Kris Jurka

Attachment

pgsql-jdbc by date:

Previous
From: pginfo
Date:
Subject: problem with transactions
Next
From: Oliver Jowett
Date:
Subject: Re: problem with transactions