Re: array constructor can't construct empty array

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: array constructor can't construct empty array
Дата
Msg-id 3F542BEA.20505@joeconway.com
обсуждение исходный текст
Ответ на Re: array constructor can't construct empty array  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-hackers
> I can
>   select foo('{}'::int4[]) -- ok
>   select foo('{}')         -- ok too
> but
>   select foo(array[])      -- syntax error, 
> 
> my function can by like

Correct -- you cannot use the ARRAY constructor empty. If you need an 
empty array, use '{}'. Search the archives for previous discussions on 
this topic during the June/July timeframe. This might change for 7.5, 
but don't count on it (at least not yet).

Joe




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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: array constructor can't construct empty array
Следующее
От: Tommi Maekitalo
Дата:
Сообщение: Re: TCP/IP with 7.4 beta2 broken?