Re: array constructor can't construct empty array

From: Joe Conway <mail(at)joeconway(dot)com>
To: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: array constructor can't construct empty array
Date: 2003-09-02 05:34:34
Message-ID: 3F542BEA.20505@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bupp Phillips 2003-09-02 05:37:36 Re: PG7.5
Previous Message Pavel Stehule 2003-09-02 05:29:38 Re: array constructor can't construct empty array