Re: retun cursor - Mailing list pgsql-general

From Jan Wieck
Subject Re: retun cursor
Date
Msg-id 200204081322.g38DM9T12110@saturn.janwieck.net
Whole thread Raw
In response to Re: retun cursor  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
Stephan Szabo wrote:
>
> On Thu, 6 Apr 2000, Madhavi Daroor wrote:
>
> > Hi,
> >    I have tried the method you have suggested. And everytime I try to access
> > the function in which the refcursor is kept open, the only output I get is
> > "UNNAMED CURSOR" instead of the selected fields in the cursor.
>
> Right.  You get a cursor name that you can fetch from, if you're in a
> transaction, after you select from the function, say it returns
> "unnamed cursor 1", IIRC you can do,
>
> fetch 10 from "unnamed cursor 1";

    Should be "<unnamed cursor 1>" if memory serves.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-general by date:

Previous
From: Patrick Welche
Date:
Subject: numeric test on RiscPC
Next
From: Matthew Stanfield
Date:
Subject: No pg_hba.conf entry error.