Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: concat returns null



 Hello abyss,

Check out the built-in function COALESCE which will do your special-casing for you


Tuesday, December 18, 2007, 3:16:31 AM, you wrote:


>

I don't know if it's bug or feature but 

select 'test' || null as result

returns null, 

so i need to case second parameter not to concat if it is null...






-- 

Best regards,

 Andrew                            mailto:drlaz(at)attglobal(dot)net



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group