dbTalk Databases Forums  

[BUGS] Error in returning setof records

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


Discuss [BUGS] Error in returning setof records in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] Error in returning setof records - 04-27-2006 , 08:07 AM






Hi all,
when i am returning function as setof record then it will give error
"ERROR: set-valued function called in context that cannot accept a set
CONTEXT: PL/pgSQL function "gfs_ls" while casting return value to
function's return type"

plz help me to get rid of it

--
With Regards,
Anjali Arora
Project Engineer
Hardware Technology And Development Group
Center for Development of Advanced Computing
Pune University Campus,Ganeshkhind
Pune-411007
Tel: 020-25704320
Mob: 09372441025
Web: www.cdac.in




---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: [BUGS] Error in returning setof records - 04-27-2006 , 11:12 AM






Anjali Arora wrote:
Quote:
Hi all,
when i am returning function as setof record then it will give error
"ERROR: set-valued function called in context that cannot accept a set
CONTEXT: PL/pgSQL function "gfs_ls" while casting return value to
function's return type"
This is not a bug - see the manuals for details.

A set returning function is like a table so you need to call it as:
SELECT * FROM my_set_function();

For general help you might like to try the general/sql mailing lists
rather than the bug tracker.
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


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.