Re: Empty array IS NULL?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Empty array IS NULL?
Дата
Msg-id 40E046B3.2070603@joeconway.com
обсуждение исходный текст
Ответ на Empty array IS NULL?  (Markus Bertheau <twanger@bluetwanger.de>)
Ответы Re: Empty array IS NULL?
Список pgsql-sql
Markus Bertheau wrote:
> is the empty array representable in PostgreSQL, and is it
> distinguishable from NULL?

Yes, and yes.

regression=# select '{}'::int[]; int4
------ {}
(1 row)

regression=# select NULL::int[]; int4
------

(1 row)

Since NULL array elements are not currently supported, attempting to 
construct an array with a NULL element results in NULL, not an empty array.

Joe


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

Предыдущее
От: Markus Bertheau
Дата:
Сообщение: Empty array IS NULL?
Следующее
От: Franco Bruno Borghesi
Дата:
Сообщение: Re: Need indexes on inherited tables?