Search Postgresql Archives

Re: deleting function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 24, 2009 at 11:55:48AM -0400, Tom Lane wrote:
> pavunkumar <pavun.bks@xxxxxxxxx> writes:
> > create or replace function newd(id integer ) returns void as $$
> > delete from testing where id=$1;
> 
> Don't use the same name for a parameter as you use for a table column
> referenced in the function.

I've found it helps to have a standard naming convention here; I only
use identifiers starting with an underscore (i.e. "_") for function
parameters and local variables.  Column names always start with a lower
case alphabetic letter.  Other people will obviously have different ways
of dealing with the ambiguity, but this has worked well for me so far.

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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux