Re: Clobbered parameter names via DECLARE in PL/PgSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Clobbered parameter names via DECLARE in PL/PgSQL
Дата
Msg-id 8686.1334503512@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Clobbered parameter names via DECLARE in PL/PgSQL  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Clobbered parameter names via DECLARE in PL/PgSQL  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> We can raise warning from CREATE OR REPLACE FUNCTION - but I would to
> like have plpgsql_check_function inside core - and it is better place
> for this and similar issues.

I agree.  This is a perfectly legal use of nested declaration scopes,
so it would be totally inappropriate to complain about it in normal
use of a plpgsql function.  On the other hand, it would probably be
sane and useful for CHECK FUNCTION to flag any case where an inner
declaration shadows an outer-scope name (not only the specific case
of topmost block vs function parameter).
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query planner does not canonicalize infix operators
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Last gasp