Re: PERFORM not working properly, please help..

From: wilczarz1(at)op(dot)pl
To: Raymond O'Donnell <rod(at)iol(dot)ie>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PERFORM not working properly, please help..
Date: 2010-02-19 09:59:54
Message-ID: Q18098529-06087e7cec2baa930d13d03137c112bb@pmq1.m5r2.onet.test.onet.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Ray, thanks for reply. Your solution needs to be modified with alias to get executed properly:

CREATE OR REPLACE FUNCTION A3() RETURNS VOID AS $BODY$
begin
select * from A1() as dummy ( x double precision );
return;
end;
$BODY$ LANGUAGE 'plpgsql';

but when used: select * from A3() it generates error "query has no destination for result data". That was the reason to use PERFORM in the first place..

"Raymond O'Donnell" <rod(at)iol(dot)ie> napisał(a):
> On 18/02/2010 12:05, wilczarz1(at)op(dot)pl wrote:
>
> >
> > CREATE OR REPLACE FUNCTION A3() RETURNS VOID AS $BODY$
> > begin
> > perform A1();
> > end;
> > $BODY$ LANGUAGE 'plpgsql';
>
> You need to do:
>
> select * from A1();
>
> Ray.
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod(at)iol(dot)ie

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2010-02-19 10:04:48 Re: PERFORM not working properly, please help..
Previous Message wilczarz1 2010-02-19 09:54:43 Re: PERFORM not working properly, please help..