Re: Calling stored function that returns a cursor from a libpq program

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Calling stored function that returns a cursor from a libpq program
Дата
Msg-id 7631.1250177438@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Calling stored function that returns a cursor from a libpq program  (Mazen Abdel-Rahman <saba.mazen@gmail.com>)
Ответы Re: Calling stored function that returns a cursor from a libpq program  (Mazen Abdel-Rahman <saba.mazen@gmail.com>)
Список pgsql-novice
Mazen Abdel-Rahman <saba.mazen@gmail.com> writes:
> I am trying to use a stored functions that returns a CURSOR in a C
> program that uses that libpq library.

It looks like you've just hardwired an assumption about what the name of
the cursor will be.  It'd be better to pay attention to the name
returned by the function.

It also looks like you're not bothering to check that the BEGIN command
succeeded.  If it didn't for some reason, that could explain the
failure.

            regards, tom lane

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

Предыдущее
От: Mazen Abdel-Rahman
Дата:
Сообщение: Calling stored function that returns a cursor from a libpq program
Следующее
От: Mazen Abdel-Rahman
Дата:
Сообщение: Re: Calling stored function that returns a cursor from a libpq program