Re: [SQL] postgres subfunction return error

2013-09-27 Thread jonathansfl
TURN; END; $body$ LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER COST 100; From: David Johnston [via PostgreSQL] [mailto:ml-node+s1045698n5772627...@n5.nabble.com] Sent: Friday, September 27, 2013 1:43 PM To: jonathansfl Subject: Re: postgres subf

Re: [SQL] postgres subfunction return error

2013-09-27 Thread jonathansfl
I'm trying to pass a REFCURSOR variable from a subfunction to its parent calling function, who will then pass it to the user (for parsing). thanks to David J I fixed it somewhat, but the user now receives the TEXT of (etc.) instead of the actual data in that REFCURSOR variable. I think the proble

Re: [SQL] postgres subfunction return error

2013-09-25 Thread jonathansfl
); OPEN swv_refcurfor SELECT v_outvar1; OPEN swv_refcur2 for SELECT v_outvar2; OPEN swv_refcur3 for SELECT v_outvar3; From: David Johnston [via PostgreSQL] [mailto:ml-node+s1045698n577240...@n5.nabble.com] Sent: Wednesday, September 25, 2013 7:19 PM To: jonathansfl Subject: Re: postgres

[SQL] postgres subfunction return error

2013-09-25 Thread jonathansfl
greetings. I'm trying to write a function that acts like a switchboard, calling other functions depending on incoming parameters. I'm getting error: query has no destination for result data Please advise what we're doing wrong. The subfunctions return a series of refcursors in a single table and si