Re: ARRAY() returning NULL instead of ARRAY[] resp. {}

Поиск
Список
Период
Сортировка
От Markus Bertheau
Тема Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Дата
Msg-id 1116874691.7306.3.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: ARRAY() returning NULL instead of ARRAY[] resp. {}  ("Jan B." <jan@monso.de>)
Список pgsql-sql
Dnia 23-05-2005, pon o godzinie 18:54 +0000, Jan B. napisał(a):

> Perhaps Arrays always have to contain at least one element? (I don't
> know for sure.)

They can:

template1=# select '{}'::TEXT[];text
------{}
(1 запись)

I don't know, why the ARRAY[] syntax doesn't work for empty arrays.

Markus

--
Markus Bertheau <twanger@bluetwanger.de>

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

Предыдущее
От: "Jan B."
Дата:
Сообщение: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Следующее
От: Joe Conway
Дата:
Сообщение: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}