Re: help on qouteing in plpgsql function

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Robert Treat <rtreat(at)webmd(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: help on qouteing in plpgsql function
Date: 2002-06-17 13:25:37
Message-ID: 3D0DE351.F9445C1D@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Robert Treat wrote:
>
> I think I am at the point of just guessing now, so I'm hoping someone
> can shed a little light on this. Heres the code:
>
> CREATE OR REPLACE FUNCTION purge_old_messages()
> RETURNS bool
> AS
> '[...]
>
> What I am trying to accomplish with the second sql query is:

What about putting a

RAISE NOTICE ''strDelete = %'', strDelete;

before the EXECUTE and continue with try'n'error?
Good old "printf-debugging" allways works :-)

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bertin, Philippe 2002-06-17 13:27:10 Re: Clients for administration?
Previous Message Dustin Dortch 2002-06-17 13:06:53 Stored Procedures for Shell Execution