Re: coalesce for null AND empty strings

Поиск
Список
Период
Сортировка
От Lew
Тема Re: coalesce for null AND empty strings
Дата
Msg-id tMWdne7U_rjJ3JHbnZ2dnUVZ_oDinZ2d@comcast.com
обсуждение исходный текст
Ответ на coalesce for null AND empty strings  (Ferdinand Gassauer <gassauer@kde.org>)
Список 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 по дате отправления:

Предыдущее
От: Lew
Дата:
Сообщение: Re: Deleted Flag/Unique Constraint
Следующее
От: Gerald Timothy G Quimpo
Дата:
Сообщение: Re: COPY command details