Re: parameters in functions and overlap with names of columns

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: parameters in functions and overlap with names of columns
Дата
Msg-id 20090804145033.GD6494@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: parameters in functions and overlap with names of columns  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Ответы Re: parameters in functions and overlap with names of columns
Список pgsql-general
Ivan Sergio Borgonovo wrote:
> On Tue, 4 Aug 2009 16:01:58 +0200
> Pavel Stehule <pavel.stehule@gmail.com> wrote:
>
> > 2009/8/4 Ivan Sergio Borgonovo <mail@webthatworks.it>:

> > > Is there another way other than just simply rename the variable?
> >
> > yes - the most common is an using of prefix '_' for local plpgsql
> > variables. Other possibility is using qualified names.
>
> Just to be sure... by qualified names you mean schema qualified name
> or table qualified names in case of columns... right...

In this case I think it also means you can qualify the variable names
with the function name; and/or declare named blocks inside the function,
and qualify the variables with the block name.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: "Abraham, Danny"
Дата:
Сообщение: InitDB 8.3.7 fails on Windows - Failed system call was MapViewOfFileEx
Следующее
От: Paul Taylor
Дата:
Сообщение: Re: Does derby have an embedded Mode like Derby ?