Re: ERROR: query has no destination for result data

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Peter Kroon <plakroon(at)gmail(dot)com>
Cc: John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: query has no destination for result data
Date: 2012-11-23 14:53:15
Message-ID: 50AF8DDB.3040400@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/23/2012 03:25 AM, Peter Kroon wrote:
> Yes, but this means I have to create a function which is something I
> don't want.
> I just want to debug some of my code in the related function.
> So what I want is in pgAdmin declare some vars and run the sql and get
> the result.

The way I handle this is to use RAISE NOTICE in place of RETURN.

>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-11-23 15:53:48 Re: [GENERAL] Prepared Statement Name Truncation
Previous Message Pavel Stehule 2012-11-23 11:33:20 Re: Prepared Statement Name Truncation