Re: plpgsql function not working - Mailing list pgsql-general

From John DeSoi
Subject Re: plpgsql function not working
Date
Msg-id 92BE7614-B5C4-11D9-B125-000A95B03262@pgedit.com
Whole thread Raw
In response to plpgsql function not working  ("Ruff, Jeffry C. SR." <jeffry.ruff@tycoelectronics.com>)
List pgsql-general
On Apr 25, 2005, at 3:40 PM, Ruff, Jeffry C. SR. wrote:

> I found this function on line [Thanks to Jeff Eckermann and Juerg
> Rietmann] that takes the results of a query and creates a comma
> delimited  string. However when I run it I get no values. Any help
> would be appreciated. I apologize if this is the wrong forum.

Try changing

string text := NULL;
to
string text := '';

Any text concatenated with NULL results in a NULL value.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Calculated bigserial column in a view
Next
From: Michael Fuhr
Date:
Subject: Re: plpgsql function not working