| От | Constantin Teodorescu |
|---|---|
| Тема | Re: What's wrong in this pltcl function ? |
| Дата | |
| Msg-id | 3DAAD9C5.3000700@flex.ro обсуждение исходный текст |
| Ответ на | What's wrong in this pltcl function ? (Constantin Teodorescu <teo@flex.ro>) |
| Список | pgsql-interfaces |
Tom Lane wrote: >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? > > Yes, I changed it as varchar the function parameter and the query parameter! Now it works even with 2 backslashes like this: ... from conturi where id = \\$1" [list varchar] teo
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера