Skip site navigation (1) Skip section navigation (2)

Re: PL/PGSQL - character varying as function argument

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: Chris Baechle <bangular(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: PL/PGSQL - character varying as function argument
Date: 2008-09-26 14:10:44
Message-ID: 48DCED64.5030107@iol.ie (view raw or flat)
Thread:
Lists: pgsql-general
On 26/09/2008 14:40, Stephan Szabo wrote:

> Actually, I think the function probably isn't at fault here, string
> literals should be surrounded with ' not ".

Yes, that's true. In addition to that, however, if you look at your
SELECT statement you're selecting all users in the table; the argument
passed to the function isn't used anywhere.

In fairness, you did say that what you posted was a shortened version of
your real function, so maybe something got lost in the shortening...

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

pgsql-general by date

Next:From: Merlin MoncureDate: 2008-09-26 15:19:20
Subject: types for C function composites
Previous:From: Raymond O'DonnellDate: 2008-09-26 13:57:58
Subject: Re: PL/PGSQL - character varying as function argument

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group