pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Bertheau <twanger@bluetwanger.de>
To: Jan B. <jan@monso.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
Date: Mon, 23 May 2005 20:58:11 +0200
Message-ID: <1116874691.7306.3.camel@localhost.localdomain> (raw)
In-Reply-To: <429226CF.4090207@monso.de>
References: <1116873219.7306.0.camel@localhost.localdomain>
	<429226CF.4090207@monso.de>

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@bluetwanger.de>

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (22+ messages)  latest in thread

Message-ID: <1116874691.7306.3.camel@localhost.localdomain>
Permalink:  ../1116874691.7306.3.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1116874691.7306.3.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: twanger@bluetwanger.de, jan@monso.de
  Subject: Re: ARRAY() returning NULL instead of ARRAY[] resp. {}
  In-Reply-To: <1116874691.7306.3.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox