Skip site navigation (1) Skip section navigation (2)

Re: commit and rollback don't throw exceptions when they should

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "taktos" <taktos(at)gmail(dot)com>,"Oliver Jowett" <oliver(at)opencloud(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>, "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Subject: Re: commit and rollback don't throw exceptions when they should
Date: 2009-11-04 22:40:17
Message-ID: 4AF1AE71020000250002C2C3@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-jdbc
taktos <taktos(at)gmail(dot)com> wrote: 
 
> Drivers other than PosrgreSQL throws exception as I had expected,
> but PostgreSQL didn't throw exception.
 
Having received no feedback on the preliminary patch I previously
posted, I'll suggest this (fairly minimal) patch.  I didn't attempt to
deal with the distributed transaction issue, since it seemed pretty
messy and I wasn't sure the fix was worth the mess it would make.  As
far as I can see, it should fix the OP's problem, although it would be
nice to get a confirmation of that.
 
This patch is basically the same as the previous one, except that I've
updated the javadocs to match the new behavior.
 
If there are any issues with this, I can have another go at it.
 
-Kevin


Attachment: commit-rollback-exceptions-1.patch
Description: text/plain (3.7 KB)

In response to

Responses

pgsql-jdbc by date

Next:From: cholidDate: 2009-11-05 15:50:03
Subject: Database connection error, try to reset the connection parameters
Previous:From: Richard BroersmaDate: 2009-11-03 18:39:54
Subject: Re: [NOVICE] Bug - DatabaseMetaData.getCatalogs() was [Novice] Can't get list of databases with \list

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group