Re: Calling PL functions with named parameters

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Calling PL functions with named parameters
Дата
Msg-id 200408141337.04184.peter_e@gmx.net
обсуждение исходный текст
Ответ на Calling PL functions with named parameters  (David Fetter <david@fetter.org>)
Список pgsql-hackers
David Fetter wrote:
> I'd like to be able to create functions with named parameters that
> could be called with the names in any order.  For example,
>
> CREATE OR REPLACE FUNCTION foo_func(name TEXT, val INTEGER) AS ...
>
> SELECT foo_func(val AS 23, name AS 'Name goes here');

When that was brought up last time, I think the hard part was what 
syntax to use.  You can't use AS because SQL uses that for something 
different.  => might be OK, but then we'd need to disallow that as 
operator name.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: 7.4 backpatches
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Calling PL functions with named parameters