Re: Named arguments in function calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Named arguments in function calls
Дата
Msg-id 8000.1075134241@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Named arguments in function calls  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Named arguments in function calls  (Matthew Kirkwood <matthew@hairy.beasts.org>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Rod Taylor wrote:
>> If that was IS, then foo(x is 13) makes sense.

> I like that syntax.  For example
> select interest(amount is 500.00, rate is 1.3)
> is very readable, yet brief.

On second thought though, it doesn't work.
select func(x is null);

is ambiguous, especially if func() accepts boolean.
        regards, tom lane


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

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: cache control?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Named arguments in function calls