| От | Vlad Arkhipov |
|---|---|
| Тема | Re: Reading from a REFCURSOR in a C language function |
| Дата | |
| Msg-id | 4D9BFA9A.2050200@dc.baikal.ru обсуждение исходный текст |
| Ответ на | Re: Reading from a REFCURSOR in a C language function (Jan Wieck <JanWieck@Yahoo.com>) |
| Список | pgsql-hackers |
06.04.2011 02:06, Jan Wieck wrote: > On 4/5/2011 3:24 AM, Vlad Arkhipov wrote: >> Hi, >> >> I'm trying to write a C language function that has a REFCURSOR argument. >> Could anyone please give me an example of reading from a cursor in C >> code? >> > > Sorry, I don't have a code example. > > A refcursor data type is basically a string, containing the name of an > open cursor (portal). It is stored binary compatible to the text data > type. In the C function, you extract that name (using the textout > function) and use it inside the FETCH query as the cursor name. You > may need to double-quote that string. > > > Jan > Thanks for the hint. It works great.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера