Re: Problem with aborting entire transactions on error

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Problem with aborting entire transactions on error
Дата
Msg-id 20121210230224.GY9573@crankycanuck.ca
обсуждение исходный текст
Ответ на Re: Problem with aborting entire transactions on error  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
On Mon, Dec 10, 2012 at 05:02:37PM +0100, Thomas Kellerer wrote:
> Just as a side-note: Oracle also allows you to commit a "transaction" even if some of the statements failed

True.  I always thought that was a bizarre bug.  Certainly, it would
be the day you did

BEGIN;
INSERT INTO sale $bunch of stuff;
INSERT INTO xact_log $stuff-with-money-deducted;
UPDATE account SET balance = balance-?COST WHERE customer_id = ?ID;
   ---ERROR here for no permission
COMMIT;

Or anyway, that's how I look at it.

A

--
Andrew Sullivan
ajs@crankycanuck.ca


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Problem with aborting entire transactions on error
Следующее
От: Andrew Jaimes
Дата:
Сообщение: Locking issue