Re: BUG #18451: NULL fails to coerce to string when performing string comparison

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18451: NULL fails to coerce to string when performing string comparison
Дата
Msg-id 1825308.1714516246@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18451: NULL fails to coerce to string when performing string comparison  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: BUG #18451: NULL fails to coerce to string when performing string comparison  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Fair, we don’t explicitly document that ‘…’ || NULL yields NULL.  It’s more
> of “unless otherwise noted doing stuff with null results in unknown/null
> outcomes”.

Yeah, there's a documentation gap here.  I dug around a little and
really couldn't find anything anywhere in our SGML docs that explains
NULL in any detail; we tend to assume that you've already heard of it.
There are a couple of parenthetical remarks in func.sgml that
reference the notion that NULL means "unknown", but you'd never
find those if you were looking for an explanation of what NULL is.
Perhaps that'd be worth a few paras somewhere, though I'm not
very sure where's a good place.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Darryl Dixon
Дата:
Сообщение: Re: BUG #18451: NULL fails to coerce to string when performing string comparison
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18453: --exclude-database has problems with capital letters