Re: Trigger function returning null

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger function returning null
Дата
Msg-id 22902.1092405732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger function returning null  (Thomas Hallgren <thhal@mailblocks.com>)
Ответы Re: Trigger function returning null  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-hackers
Thomas Hallgren <thhal@mailblocks.com> writes:
> In backend/commands/trigger.c the following can be found:
>      /*
>       * Trigger protocol allows function to return a null pointer,
>       * but NOT to set the isnull result flag.
>       */
>      if (fcinfo.isnull)
>          ereport(ERROR,

> Why?

Why not?

The real answer is "it's historical and I didn't see any need to
change it".  But one could argue that a function returning NULL
doesn't know it's supposed to be a trigger.
        regards, tom lane


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

Предыдущее
От: strk
Дата:
Сообщение: Re: Dump Version
Следующее
От: Bruce Momjian
Дата:
Сообщение: to_char() and negative intervals