Re: Question about STRICT
| От | Greg Stark |
|---|---|
| Тема | Re: Question about STRICT |
| Дата | |
| Msg-id | 4136ffa0906030236n665739c2m6a7220da2984b745@mail.gmail.com обсуждение исходный текст |
| Ответ на | Question about STRICT (Gevik Babakhani <pgdev@xs4all.nl>) |
| Ответы |
Re: Question about STRICT
|
| Список | pgsql-hackers |
On Wed, Jun 3, 2009 at 9:45 AM, Gevik Babakhani <pgdev@xs4all.nl> wrote: > Could someone please clarify the difference between "RETURNS NULL ON NULL > INPUT" or "STRICT" when creating a function. They're synonyms. > Do both options exist because > of historical reasons/SQL standard compliance? One or the other, not sure which. > Shouldn't we raise an error when calling a function with NULL arguments > values if the function is created as STRICT? No, what they do is return NULL automatically. The function doesn't have to check for NULL arguments itself. -- greg
В списке pgsql-hackers по дате отправления: