Array constructor requires one argument

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Array constructor requires one argument
Дата
Msg-id 20070109102501.GA8359@svana.org
обсуждение исходный текст
Ответы Re: Array constructor requires one argument  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

Is there a particular reason why the array constructor requires at
least one argument? It's a bit irriating to have to special case zero
length arrays.

# select array[];
ERROR:  syntax error at or near "]" at character 14
# select array[1];
 array
-------
 {1}
(1 row)

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

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: [OT] Advice needed on using postgres in commercial
Следующее
От: "Gregory S. Williamson"
Дата:
Сообщение: Confused by misleading error message on SP creation