Search Postgresql Archives

Re: FUNCTION problem

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

 



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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

[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