Re: [GENERAL] how to return a result set from a stored procedure

2005-06-15 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-06-11 08:44:32 -0400: > Hi everybody > > I am trying to write a stored procedure that returns a result set but it is > not working > this is the function: > /// > CREATE OR REPLACE FUNCTION > remisiones.fn_get_total_remitidoxprovision1("numeric") > > RETURNS SETOF reco

Re: [GENERAL] how to return a result set from a stored procedure

2005-06-11 Thread Hugo
hi Petar, thanks for your answer, I tried it and got this message: ERROR:  SELECT query has no destination for result data HINT:  If you want to discard the results, use PERFORM instead. CONTEXT:  PL/pgSQL function "fn_get_total_remitidoxprovisio n1" line 5 at SQL statement could you advice me

Re: [GENERAL] how to return a result set from a stored procedure

2005-06-11 Thread Petar Jovanovic
Hugo wrote: Hi everybody I am trying to write a stored procedure that returns a result set but it is not working this is the function: /// CREATE OR REPLACE FUNCTION remisiones.fn_get_total_remitidoxprovision1("numeric") RETURNS SETOF record AS $BODY$ begin select rm.provision as provisio