Is this really really as designed or defined in some standard

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Is this really really as designed or defined in some standard
Дата
Msg-id 1220219721.17281.5.camel@huvostro
обсуждение исходный текст
Ответы Re: Is this really really as designed or defined in some standard  (David Fetter <david@fetter.org>)
Re: Is this really really as designed or defined in some standard  (Dennis Bj\xF6rklund <db@zigo.dhs.org>)
Re: Is this really really as designed or defined in some standard  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
It seems that we allow several function arguments to have same 
name (or is it label :)

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 ?

----------------------
Hannu




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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Prototype: In-place upgrade
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: WIP patch: Collation support