dbTalk Databases Forums  

[BUGS] BUG #1850: parameter WITH HOLD (of function DECLARE CURSOR) not acepted inside CREATE FUNCTION.

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1850: parameter WITH HOLD (of function DECLARE CURSOR) not acepted inside CREATE FUNCTION. in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Danilo Barbosa
 
Posts: n/a

Default [BUGS] BUG #1850: parameter WITH HOLD (of function DECLARE CURSOR) not acepted inside CREATE FUNCTION. - 08-26-2005 , 04:45 PM







The following bug has been logged online:

Bug reference: 1850
Logged by: Danilo Barbosa
Email address: dusb (AT) airgate (DOT) com.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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.