sp: error message not coherent with actual code

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: sp: error message not coherent with actual code
Date: 2008-05-15 18:36:21
Message-ID: 20080515203621.439453b8@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've this line in a sp:

select into _OrderGroupID b2c._OrderGroupID from
Basket2Order(_BasketID) as b2c;

but I get this error:

SELECT query has no destination for result data HINT: If you want to
discard the results, use PERFORM instead. CONTEXT: PL/pgSQL function
"basket2order" line 71 at SQL statement SQL statement "SELECT
b2c._OrderGroupID from Basket2Order( $1 ) as b2c"

?

Commenting that line the error goes away.

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin 2008-05-15 18:53:54 Re: Need for help!
Previous Message Tom Lane 2008-05-15 18:26:08 Re: Need for help!