Re: BUG #4509: array_cat's null behaviour is inconsistent

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: BUG #4509: array_cat's null behaviour is inconsistent
Дата
Msg-id 491172A8.8040002@gmx.net
обсуждение исходный текст
Ответ на BUG #4509: array_cat's null behaviour is inconsistent  ("Kevin Field" <kev@brantaero.com>)
Ответы Re: BUG #4509: array_cat's null behaviour is inconsistent  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Kevin Field wrote:
> Section 9.2 in the docs say, 'The ordinary comparison operators yield null
> (signifying "unknown") when either input is null.'  This applies to other
> operators too.  For example, the result of tacking an unknown value onto a
> known one is unknown, because you don't know what exactly you just tacked
> on.  So
>
>    select null::text || 'hello';
>
> ...returns NULL, which makes sense.  But then this
>
>    select array_cat(null::integer[], '{3}'::integer[]);
>
> ...doesn't return NULL, which it should, for consistency.

Doesn't make sense to me either.  I found that this was changed between
8.1 (where it returns null) and 8.2, but I find nothing in the
respective release notes or commit messages about this change.  Tom?

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

Предыдущее
От: nathan wagner
Дата:
Сообщение: Re: plperl & sort
Следующее
От: "MWendt"
Дата:
Сообщение: BUG #4510: memory leak with libpg.dll