Re: Default values in functions

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Default values in functions
Дата
Msg-id CAHOFxGpWRrBeEZJQP4-Z0Yahs3mFo3z=hQn-eJgStZPhnNVZug@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Default values in functions  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Default values in functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

On Wed, Dec 29, 2021, 4:34 PM David G. Johnston <david.g.johnston@gmail.com> wrote:
That isn’t how it works.  Absence is what is important.  Null is not absence.  As you showed, if you want nulls to be converted to defaults you can use coalesce.

Thanks sir. It seems unfortunate that there is not a way to indicate absence of the third parameter if I need to set a value for the fourth parameter.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Default values in functions
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Default values in functions