Re: ARRAY() returning NULL instead of ARRAY[] resp. {}

From: Markus Bertheau <twanger(at)bluetwanger(dot)de>
To: "Jan B(dot)" <jan(at)monso(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Date: 2005-05-23 18:58:11
Message-ID: 1116874691.7306.3.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-sql

Dnia 23-05-2005, pon o godzinie 18:54 +0000, Jan B. napisał(a):

> Perhaps Arrays always have to contain at least one element? (I don't
> know for sure.)

They can:

template1=# select '{}'::TEXT[];
text
------
{}
(1 запись)

I don't know, why the ARRAY[] syntax doesn't work for empty arrays.

Markus

--
Markus Bertheau <twanger(at)bluetwanger(dot)de>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2005-05-23 20:04:50 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Previous Message Jan B. 2005-05-23 18:54:07 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2005-05-23 20:04:50 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Previous Message Jan B. 2005-05-23 18:54:07 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2005-05-23 20:04:50 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Previous Message Jan B. 2005-05-23 18:54:07 Re: ARRAY() returning NULL instead of ARRAY[] resp. {}