Re: Default values in functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Default values in functions
Дата
Msg-id 2184626.1640824087@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Default values in functions  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-general
Michael Lewis <mlewis@entrata.com> writes:
> Understood. My hope is to pass a parameter that gets overridden by the
> default so that I can pass other parameters that come after.

As David explained, function parameters don't work that way.
You could mechanize something like substitute-a-default-for-
null-input, but you'll have to do it with explicit logic.

            regards, tom lane



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

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: Default values in functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Default values in functions