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

From Pavel Stehule
Subject array constructor can't construct empty array
Date
Msg-id Pine.LNX.4.44.0309011704070.12687-100000@kix.fsv.cvut.cz
Whole thread Raw
Responses Re: array constructor can't construct empty array  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hello

I have function 

CREATE FUNCTION foo(date, date, INTEGER[]) RETURNS INTEGER 

Array and array's functions works fine, but I need call this function 
with empty array. I can't use array constructor for empty array. When 
I call function foo with e.a. ,I get syntax error. I can call with '{}'.

What is coorect style?

Thank You 
Pavel Stehule







pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Preliminary notes about hash index concurrency (long)
Next
From: Bruce Momjian
Date:
Subject: Re: massive quotes?