Re: Returnd Refcurser ( not fetchable

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Returnd Refcurser ( not fetchable
Дата
Msg-id 20070810063103.GA7903@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Returnd Refcurser ( not fetchable  ("Christian Kindler" <christian.kindler@gmx.net>)
Ответы Re: Returnd Refcurser ( not fetchable  ("Christian Kindler" <christian.kindler@gmx.net>)
Список pgsql-sql
On Fri, Aug 10, 2007 at 08:16:28AM +0200, Christian Kindler wrote:
> select * from getfoo('M');
> -- fetch all in '<unnamed portal 14>';
> 
> ERROR:  syntax error at or near "'<unnamed portal 14>'" at character 15

The cursor name is an identifier so use double quotes instead of
single quotes.  Also, when using non-holdable cursors you'll need
to be in a transaction block.

begin;
select * from getfoo('M');
fetch all in "<unnamed portal 14>";
commit;

-- 
Michael Fuhr


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Returnd Refcurser ( not fetchable
Следующее
От: "Christian Kindler"
Дата:
Сообщение: Re: Returnd Refcurser ( not fetchable