Re: What's wrong in this pltcl function ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What's wrong in this pltcl function ?
Дата
Msg-id 12329.1034606693@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What's wrong in this pltcl function ?  (Constantin Teodorescu <teo@flex.ro>)
Список pgsql-interfaces
Constantin Teodorescu <teo@flex.ro> writes:
> I have replaced:
> ... where id=\'\\$1\'
>       with
> ... where id=\\$1

> and the error is now:
> ERROR:  Unable to identify an operator '=$' for types 'character 
> varying' and 'integer'

Wup, you needed a space:
... where id = \\$1

BTW, if id is varchar it would be better to define the function as
accepting varchar not bpchar, no?
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Constantin Teodorescu
Дата:
Сообщение: Re: What's wrong in this pltcl function ?
Следующее
От: Constantin Teodorescu
Дата:
Сообщение: Re: What's wrong in this pltcl function ?