Re: Problems with NEW.* in triggers

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Problems with NEW.* in triggers
Дата
Msg-id 200311041452.34214.josh@agliodbs.com
обсуждение исходный текст
Ответ на Problems with NEW.* in triggers  (Jamie Lawrence <postgres@jal.org>)
Список pgsql-sql
Jamie,

> Any thoughts on what I'm doing wrong??

Yes.  If you want to modify the new data, you need to use a BEFORE trigger.
AFTER triggers can't modify NEW, just read it.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems with NEW.* in triggers
Следующее
От: Jamie Lawrence
Дата:
Сообщение: Re: Problems with NEW.* in triggers