2008/10/27 Alvaro Herrera <[EMAIL PROTECTED]>:
> 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.
>

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to