RE: Concat error in PL/pgsql - Mailing list pgsql-bugs

From Andrew Snow
Subject RE: Concat error in PL/pgsql
Date
Msg-id JEEGIJPOJIGGIIHGKOKOCEMACHAA.andrew@modulus.org
Whole thread Raw
In response to RE: Concat error in PL/pgsql  ("Andrew Snow" <andrew@modulus.org>)
List pgsql-bugs
A few hours ago, I wrote:
>
> Simple add lines as shown:
>
> >     for r in select * from tconcattest loop
>         IF r.str IS NOT NULL THEN
> >             output := output || r.str;
>         END IF;
> >     end loop;
>


This would probably be better:

    for r in select * from tconcattest where str is not null loop
        output := output || r.str;
    end loop;

pgsql-bugs by date:

Previous
From: "Andrew Snow"
Date:
Subject: RE: Concat error in PL/pgsql
Next
From: Bruno Wolff III
Date:
Subject: Problem using pg_dump going from 7.0.3 to 7.1beta3