Re: WIP: default values for function parameters

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: WIP: default values for function parameters
Дата
Msg-id 20081027130148.GB3866@alvh.no-ip.org
обсуждение исходный текст
Ответ на WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
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?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: "Ibrar Ahmed"
Дата:
Сообщение: Re: ERRORDATA_STACK_SIZE exceeded (server crash)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Parsing errors in pg_hba.conf