Re: Anybody have an Oracle PL/SQL reference at hand?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Anybody have an Oracle PL/SQL reference at hand?
Дата
Msg-id 4110421E.6090904@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Anybody have an Oracle PL/SQL reference at hand?  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-hackers
>>
>>
>>>        BEGIN;
>>>            SAVEPOINT start;
>>>            INSERT INTO users VALUES(user || suffix);
>>>            EXIT;
>>>        EXCEPTION
>>>            WHEN UNIQUE_VIOLATION THEN
>>>                ROLLBACK TO start;
>>>                suffix := suffix + 1;
>>>        END;

> By the way, while I know Oracle won't abort the transaction, they might
> rollback whatever work the command that failed had done; I'm not really
> sure how that's handled.

How about a new EXCEPTION clause:

EXCEPTION NO ROLLBACKWHEN UNIQUE...

Chirs



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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: pg_dump bug fixing
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: pgxs: build infrastructure for extensions v4