Re: Trigger problem 2

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Trigger problem 2
Дата
Msg-id 41AD8A96.2000805@archonet.com
обсуждение исходный текст
Ответ на Trigger problem 2  (Jamie Deppeler <jamie@doitonce.net.au>)
Список pgsql-general
Jamie Deppeler wrote:
>
>     UPDATE wip.resource
>     set "name" = datarecord.borname
>     where wip.resource."primary" = OLD."primary";
>
>
> get the following error
>
> Error: record "old" is not yet assigned

If called from an INSERT then OLD is undefined, since there is no old
version of the row.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Najib Abi Fadel"
Дата:
Сообщение: Re: granting privileges
Следующее
От: Chris Green
Дата:
Сообщение: Re: [HACKERS] Adding Reply-To: to Lists configuration ...