From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
---|---|
To: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
Cc: | Madhavi Daroor <madhavi(at)zoniac(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: retun cursor |
Date: | 2002-04-08 13:22:09 |
Message-ID: | 200204081322.g38DM9T12110@saturn.janwieck.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Stanfield | 2002-04-08 13:37:51 | No pg_hba.conf entry error. |
Previous Message | Patrick Welche | 2002-04-08 12:55:25 | numeric test on RiscPC |