Re: array constructor can't construct empty array - Mailing list pgsql-hackers

From Joe Conway
Subject Re: array constructor can't construct empty array
Date
Msg-id 3F542BEA.20505@joeconway.com
Whole thread Raw
In response to Re: array constructor can't construct empty array  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: array constructor can't construct empty array
Next
From: Tommi Maekitalo
Date:
Subject: Re: TCP/IP with 7.4 beta2 broken?