Re: Is this really really as designed or defined in some standard

Поиск
Список
Период
Сортировка
От Dennis Bj\xF6rklund
Тема Re: Is this really really as designed or defined in some standard
Дата
Msg-id 992a93c9b2afeb9758d0a04ca27ba776.squirrel@zigo.org
обсуждение исходный текст
Ответ на Is this really really as designed or defined in some standard  (Hannu Krosing <hannu@2ndQuadrant.com>)
Список pgsql-hackers
> 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 ?

It's just an oversight.

What about the similar program

create or replace function ffa(int, int) returns int language plpgsql as $$
DECLARE a ALIAS FOR $1; a ALIAS FOR $2;
begin return a + a;
end;
$$;

I think ffa(a int, a int) should give an error but I don't know if the
ALIAS example above should (or even if it does, I don't have a pg
installation here to try it).

/Dennis



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: WIP: Column-level Privileges
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: Extending grant insert on tables to sequences