RE: [BUGS] Concat error in PL/pgsql

2001-01-07 Thread Andrew Snow
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 bet

RE: [BUGS] Concat error in PL/pgsql

2001-01-06 Thread Andrew Snow
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; - Andrew

Re: [BUGS] Concat error in PL/pgsql

2001-01-06 Thread Tom Lane
Hans Peter Wuermli <[EMAIL PROTECTED]> writes: > Within a plpgsql function, concatenating TEXT strings from tables that > allow NULL values return nil results. That's not a bug: NULL concatenated with anything produces NULL, per SQL92 specification. If you want a NULL to act like an empty string