Unix Technical Forum

sp: error message not coherent with actual code

This is a discussion on sp: error message not coherent with actual code within the Pgsql General forums, part of the PostgreSQL category; --> I've this line in a sp: select into _OrderGroupID b2c._OrderGroupID from Basket2Order(_BasketID) as b2c; but I get this error: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2008, 02:41 PM
Ivan Sergio Borgonovo
 
Posts: n/a
Default sp: error message not coherent with actual code

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


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2008, 02:41 PM
Ivan Sergio Borgonovo
 
Posts: n/a
Default Re: sp: error message not coherent with actual code

On Thu, 15 May 2008 20:36:21 +0200
Ivan Sergio Borgonovo <mail@webthatworks.it> wrote:

> 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.


The error was somewhere else.

Forgive me.


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


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com