Re: commit and rollback don't throw exceptions when they should - Mailing list pgsql-jdbc

From Kevin Grittner
Subject Re: commit and rollback don't throw exceptions when they should
Date
Msg-id 4AF1AE71020000250002C2C3@gw.wicourts.gov
Whole thread Raw
In response to Re: commit and rollback don't throw exceptions when they should  (taktos <taktos@gmail.com>)
Responses Re: commit and rollback don't throw exceptions when they should
List pgsql-jdbc
taktos <taktos@gmail.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

pgsql-jdbc by date:

Previous
From: Richard Broersma
Date:
Subject: Re: [NOVICE] Bug - DatabaseMetaData.getCatalogs() was [Novice] Can't get list of databases with \list
Next
From: cholid
Date:
Subject: Database connection error, try to reset the connection parameters