| From: | Kris Jurka <books(at)ejurka(dot)com> | 
|---|---|
| To: | pginfo <pginfo(at)t1(dot)unisoftbg(dot)com> | 
| Cc: | pgsql-jdbc(at)postgresql(dot)org | 
| Subject: | Re: problem with transactions | 
| Date: | 2004-05-10 14:13:07 | 
| Message-ID: | Pine.BSO.4.56.0405100856070.3692@leary.csoft.net | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | 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 | Content-Type | Size | 
|---|---|---|
| TransactionTest2.java | text/plain | 1.2 KB | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | pginfo | 2004-05-10 15:14:14 | Re: problem with transactions | 
| Previous Message | Oliver Jowett | 2004-05-10 14:08:54 | Re: problem with transactions |