Search Postgresql Archives

Re: coalesce for null AND empty strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ferdinand Gassauer wrote:
it would be great to have a coalesce2 function which treats empty strings as null values.

I disagree, it would be the opposite of "great". "" is a /known/ value and not in the same semantic space as NULL at all.

If you really feel you need such a function, though, why don't you write one?

I recommend sticking with the SQL semantics instead of trying to change them.

-- Lew


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux