Re: parameters in functions and overlap with names of columns - Mailing list pgsql-general

From Sam Mason
Subject Re: parameters in functions and overlap with names of columns
Date
Msg-id 20090804131258.GH5407@samason.me.uk
Whole thread Raw
In response to parameters in functions and overlap with names of columns  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List 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 by date:

Previous
From: Andreas Kalsch
Date:
Subject: Re: character 0xe29986 of encoding "UTF8" has no equivalent in "LATIN2"
Next
From: Sam Mason
Date:
Subject: Re: Does derby have an embedded Mode like Derby ?