Re: FUNCTION problem - Mailing list pgsql-general

From Tom Lane
Subject Re: FUNCTION problem
Date
Msg-id 23542.1080890045@sss.pgh.pa.us
Whole thread Raw
In response to FUNCTION problem  (Sky <sky@sylvio.hu>)
List pgsql-general
Sky <sky@sylvio.hu> writes:
> SELECT user_id FROM person WHERE uid=$1 AND pwd=$2;

> ERROR:  Unable to identify an operator '=$' for types 'character' and
> 'integer

You need spaces:

 SELECT user_id FROM person WHERE uid= $1 AND pwd= $2;

This is fixed as of PG 7.4, IIRC.  Prior to that it's a feature not a
bug ;-) because we had a different definition of what an operator name
could be.

            regards, tom lane

pgsql-general by date:

Previous
From: Sky
Date:
Subject: FUNCTION problem
Next
From: Christophe Musielak
Date:
Subject: Re: 7.2.3-7.4.2 migration