| От | Oliver Jowett |
|---|---|
| Тема | Re: Calling PL functions with named parameters |
| Дата | |
| Msg-id | 411D3B1C.8010809@opencloud.com обсуждение исходный текст |
| Ответ на | Calling PL functions with named parameters (David Fetter <david@fetter.org>) |
| Ответы |
Re: Calling PL functions with named parameters
|
| Список | pgsql-hackers |
David Fetter wrote: > Dennis has pointed out that mixing the call-with-named-parameter > interface with call-by-order-of-parameters one would cause confusion, > and I think it would be OK to disallow this type mixing, so > > SELECT foo_func(name AS 'yet another name', 35); > > would be disallowed. Python's equivalent syntax allows you to mix the two forms so long as all the by-position parameters come first: >>> def f(a,b,c,d): ... print a,b,c,d ...>>> f(1,2,3,4) 1 2 3 4>>> f(1,2,c=3,d=4) 1 2 3 4>>> f(1,2,d=4,c=3) 1 2 3 4>>> f(1,d=4,2,c=3) SyntaxError: non-keyword arg after keyword arg -O
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера