| От | Pavel Stehule |
|---|---|
| Тема | Re: WIP: default values for function parameters |
| Дата | |
| Msg-id | 162867790810270948q7ce45f35w7d74b78169208b86@mail.gmail.com обсуждение |
| Ответ на | Re: WIP: default values for function parameters (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-hackers |
2008/10/27 Alvaro Herrera <alvherre@commandprompt.com>: > Pavel Stehule escribió: > >> postgres=# create function fx(a int, b int default 30, c int default 40) >> postgres-# returns int as $$ select $1 + $2 + $3; $$ >> postgres-# language sql; > > How do you deal with the case where you have > f(a int, b int default 1) and > f(a int, b text default '1') ? > > select f(1); -- which one do you call? it should raise exception - but actually it's undefined (I have known bug in WIP patch). regards Pavel > -- > Alvaro Herrera http://www.CommandPrompt.com/ > The PostgreSQL Company - Command Prompt, Inc. >
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера