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

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: commit and rollback don't throw exceptions when they should
Дата
Msg-id 4AF1AE71020000250002C2C3@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: commit and rollback don't throw exceptions when they should  (taktos <taktos@gmail.com>)
Ответы Re: commit and rollback don't throw exceptions when they should
Список 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


Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Richard Broersma
Дата:
Сообщение: Re: [NOVICE] Bug - DatabaseMetaData.getCatalogs() was [Novice] Can't get list of databases with \list
Следующее
От: cholid
Дата:
Сообщение: Database connection error, try to reset the connection parameters