| От | Cindy |
|---|---|
| Тема | Re: question on function definitions/casts |
| Дата | |
| Msg-id | 17938.1014244319@stephanus.tlg.uci.edu обсуждение |
| Ответ на | Re: question on function definitions/casts (Stephan Szabo <sszabo@megazone23.bigpanda.com>) |
| Список | pgsql-general |
Stephan Szabo writes: >On Wed, 20 Feb 2002, Cindy wrote: > >> I get: >> >> Text=# create function get_citation (int2, int2, int4) >> Text-# returns SETOF varchar AS >> Text-# 'select citation from citations where aid=$1 and wid=$2 and byteloc= >$3' >> Text-# LANGUAGE 'SQL'; >> ERROR: Unable to identify an operator '=$' for types 'int2' and 'int4' >> You will have to retype this query using an explicit cast >> Text=# > >Hmm, try putting a space between the = and the $<n> > Yep. The irony of this, of course, is that the first problem I solved with this saved definition is that SETOF was originally SET OF. So...subtract spaces, add spaces...*sigh* Thanks! -- Cindy ctmoore@uci.edu
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера