Re: parameters in functions and overlap with names of columns

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: parameters in functions and overlap with names of columns
Дата
Msg-id 20090804131258.GH5407@samason.me.uk
обсуждение исходный текст
Ответ на parameters in functions and overlap with names of columns  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
On Tue, Aug 04, 2009 at 02:20:00PM +0200, Ivan Sergio Borgonovo wrote:
> create or replace function(...
> declare
>   col1 varchar(32);

> Unfortunately I can't schema specify the column to avoid name
> overlap.

I think this is a limitation of plpgsql's parser; I tend to declare
local variables with an underscore prefix such as "_col1" in your
example.

> Is there another way other than just simply rename the variable?

I don't think so.

--
  Sam  http://samason.me.uk/

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

Предыдущее
От: Andreas Kalsch
Дата:
Сообщение: Re: character 0xe29986 of encoding "UTF8" has no equivalent in "LATIN2"
Следующее
От: Sam Mason
Дата:
Сообщение: Re: Does derby have an embedded Mode like Derby ?