Re: Question about STRICT

Поиск
Список
Период
Сортировка
От Gevik Babakhani
Тема Re: Question about STRICT
Дата
Msg-id 4A264E87.9040905@xs4all.nl
обсуждение исходный текст
Ответ на Re: Question about STRICT  (Greg Stark <stark@enterprisedb.com>)
Ответы Re: Question about STRICT  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Greg Stark wrote:
> On Wed, Jun 3, 2009 at 11:04 AM, Gevik Babakhani <pgdev@xs4all.nl> wrote:
>> The "RETURNS NULL ON NULL INPUT" is logical and does the above accordingly.
>> But when a function is STRICT you kind of expect to have an notification,
>> perhaps an error if a value for an argument is NULL.
> 
> Uhm, you might but I'm not sure why. That's not what STRICT does. It's
> a synonym for RETURNS NULL ON NULL INPUT.
> 

Perhaps it is an idea to have something like: "RAISE ERROR ON NULL INPUT"

-- 
Regards,
Gevik


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Question about STRICT
Следующее
От: "Markus Wanner"
Дата:
Сообщение: Re: PostgreSQL Developer meeting minutes up