Re: coalesce for null AND empty strings - Mailing list pgsql-general

From Lew
Subject Re: coalesce for null AND empty strings
Date
Msg-id tMWdne7U_rjJ3JHbnZ2dnUVZ_oDinZ2d@comcast.com
Whole thread Raw
In response to coalesce for null AND empty strings  (Ferdinand Gassauer <gassauer@kde.org>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Lew
Date:
Subject: Re: Deleted Flag/Unique Constraint
Next
From: Gerald Timothy G Quimpo
Date:
Subject: Re: COPY command details