Re: plpgsql function not working

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: plpgsql function not working
Дата
Msg-id 92BE7614-B5C4-11D9-B125-000A95B03262@pgedit.com
обсуждение исходный текст
Ответ на plpgsql function not working  ("Ruff, Jeffry C. SR." <jeffry.ruff@tycoelectronics.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Calculated bigserial column in a view
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: plpgsql function not working