Re: Can trigger procedures return value

Поиск
Список
Период
Сортировка
От nolan@celery.tssi.com
Тема Re: Can trigger procedures return value
Дата
Msg-id 20030729104810.21932.qmail@celery.tssi.com
обсуждение исходный текст
Ответ на Can trigger procedures return value  (Deepa K <kdeepa@midascomm.com>)
Список pgsql-general
>  If it is not possible to return error from
>  trigger procedure, what could be the possible
>  way to solve the above problem.

What you want is 'raise exception', which allows you to return an
error message explaining things.

Use something like "RAISE EXCEPTION ''You are not authorized to
update this information'';"
--
Mike Nolan

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

Предыдущее
От: Andreas Jung
Дата:
Сообщение: Re: concurrent writes
Следующее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: concurrent writes