Re: deleting function

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: deleting function
Date: 2009-04-28 10:00:49
Message-ID: 49F6D3D1.9020302@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 28/04/2009 10:56, Jasen Betts wrote:
> would this:
>
> delete from testing where "id"=$1;
>
> be safe?

No - you haven't really changed anything - the double-quotes just
prevent Postgres folding mixed/upper-case identifiers to lower-case.

Why not just change the name of the argument as others have suggested?

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2009-04-28 10:01:52 Re: Determining the names of columns in a dynamic query
Previous Message Jasen Betts 2009-04-28 09:56:58 Re: deleting function