From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Danilo Barbosa <dusb(at)airgate(dot)com(dot)br> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #1850: parameter WITH HOLD (of function DECLARE CURSOR) |
Date: | 2005-09-23 20:41:30 |
Message-ID: | 200509232041.j8NKfU013068@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Added to TODO:
o Allow PL/PgSQL to support WITH HOLD cursors
---------------------------------------------------------------------------
Danilo Barbosa wrote:
>
> The following bug has been logged online:
>
> Bug reference: 1850
> Logged by: Danilo Barbosa
> Email address: dusb(at)airgate(dot)com(dot)br
> PostgreSQL version: 8.1
> Operating system: LINUX
> Description: parameter WITH HOLD (of function DECLARE CURSOR) not
> acepted inside CREATE FUNCTION.
> Details:
>
> CREATE OR REPLACE FUNCTION teste2()
> RETURNS refcursor AS
> $BODY$DECLARE
> ref CURSOR WITH HOLD FOR SELECT * FROM tb_ponto;
> BEGIN
> OPEN ref;
> RETURN ref;
> END;$BODY$
> LANGUAGE 'plpgsql' VOLATILE;
> ALTER FUNCTION teste2() OWNER TO aes_jacui;
>
> The same DECLARE works outside the CREATE FUNCTION.
>
> thank you!
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-09-23 21:28:30 | Re: suggestion: fix 'now' -> CURRENT_TIMESTAMP |
Previous Message | Dave Page | 2005-09-23 20:17:13 | Re: CVS Head: Pg_ctl bug? |