| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера