Re: Problem on function returning setof custom type - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Problem on function returning setof custom type
Date
Msg-id 20050622091756.Q32802@megazone.bigpanda.com
Whole thread Raw
In response to Problem on function returning setof custom type  (Pablo Baena <pbaena@gmail.com>)
Responses Re: Problem on function returning setof custom type
List pgsql-general
On Wed, 22 Jun 2005, Pablo Baena wrote:

> FOR rec IN SELECT test.id <http://test.id>, test.blow, test1.bla2
> FROM test
> LEFT JOIN test1 ON test.id <http://test.id> = test1.id <http://test1.id>WHERE
> test1.bla2=\'$1\' LOOP

This is going to compare to the exact string '$1' not to the value of the
argument since you've quoted it.  I think you'd just want test1.bla2 = $1
there.

pgsql-general by date:

Previous
From: SCassidy@overlandstorage.com
Date:
Subject: setting up PostgreSQL on Linux RHL9 to allow ODBC connections from Windows
Next
From: Pablo Baena
Date:
Subject: Re: Problem on function returning setof custom type