Re: NULL handling in 1D array comparison

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NULL handling in 1D array comparison
Дата
Msg-id 3911709.1620147207@sss.pgh.pa.us
обсуждение исходный текст
Ответ на NULL handling in 1D array comparison  (Manvendra <manvendra2525@gmail.com>)
Список pgsql-bugs
Manvendra <manvendra2525@gmail.com> writes:
> Comparison should return UNKNOWN but it's returning a true.

> postgres=# select array[null]=array[null];

Yeah, that's intentional, because we have to be able to sort arrays.
Comparison of composites behaves similarly, btw.

> SQL-99 standard use to say it should come out as UNKNOWN

We're going to politely ignore the spec on this.

            regards, tom lane



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

Предыдущее
От: Manvendra
Дата:
Сообщение: NULL handling in 1D array comparison
Следующее
От: Kieran McCusker
Дата:
Сообщение: Re: ogr_fdw missing from /pub/repos/yum/13/fedora/fedora-34-x86_64/