Re: FUNCTION problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FUNCTION problem
Дата
Msg-id 23542.1080890045@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FUNCTION problem  (Sky <sky@sylvio.hu>)
Список 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 по дате отправления:

Предыдущее
От: Sky
Дата:
Сообщение: FUNCTION problem
Следующее
От: Christophe Musielak
Дата:
Сообщение: Re: 7.2.3-7.4.2 migration