On Mon, Sep 01, 2008 at 12:55:21AM +0300, Hannu Krosing wrote: > It seems that we allow several function arguments to have same > name (or is it label :)
Ugh! > hannu=# create or replace function ff(a int, a int) returns int language > plpgsql as $$begin return $1+$2; end;$$; > CREATE FUNCTION > hannu=# select ff(1,1); > ff > ---- > 2 > (1 row) > > hannu=# select ff(1,2); > ff > ---- > 3 > (1 row) > > hannu=# create or replace function ffa(a int, a int) returns int > language plpgsql as $$begin return a + a; end;$$; > CREATE FUNCTION > hannu=# select ffa(1,2); > ffa > ----- > 2 > (1 row) > > Is this defined by some standard or just an oversight ? This looks like a bug. Cheers, David. -- David Fetter <[EMAIL PROTECTED]> http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: [EMAIL PROTECTED] Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers