Re: 25P02, current transaction is aborted, commands ignored

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: 25P02, current transaction is aborted, commands ignored
Дата
Msg-id 442F722E.1090900@opencloud.com
обсуждение исходный текст
Ответ на 25P02, current transaction is aborted, commands ignored until end of transaction block  ("babu_moshay" <babu_moshay@indiatimes.com>)
Список pgsql-jdbc
babu_moshay wrote:

> In my opinion, if there are reasons to throw 25P02 and abort transaction unilaterally,  then there are also good
reasonsnot to abort it and let programmer take the decision. A switching mechanism would have been ideal. 

Create a savepoint before the possibly-failing query. If the query fails
in the way you were expecting, roll back to the savepoint and continue.

-O

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

Предыдущее
От: "babu_moshay"
Дата:
Сообщение: 25P02, current transaction is aborted, commands ignored until end of transaction block
Следующее
От: "Regász Imre"
Дата:
Сообщение: Re: 25P02, current transaction is aborted, commands ignored until end of transaction block