sp: error message not coherent with actual code - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject sp: error message not coherent with actual code
Date
Msg-id 20080515203621.439453b8@dawn.webthatworks.it
Whole thread Raw
Responses Re: sp: error message not coherent with actual code  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List 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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Need for help!
Next
From: Justin
Date:
Subject: Re: Need for help!