Re: plpgsql at what point does the knowledge of the query come in?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Henry Drexler <alonup8tb(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: plpgsql at what point does the knowledge of the query come in?
Date: 2011-10-20 20:57:24
Message-ID: 4EA08B34.905@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 20/10/2011 21:51, Henry Drexler wrote:
> I found the problem, it looks like nnlength := length(newnode); is not
> getting reset
>
> create or replace function nnodetestt(text) returns text language
> plpgsql as $$
> DECLARE
> newnode alias for $1;
> nnlength integer;
> t text;
> nmarker text;
> BEGIN
> nnlength := length(newnode);

Not sure what you mean by the above... that statement only gets executed
once, so the value of nnlength doesn't change.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message J.V. 2011-10-20 21:10:55 Re: how to disable all pkey/fkey constraints globally
Previous Message Henry Drexler 2011-10-20 20:51:10 Re: plpgsql at what point does the knowledge of the query come in?