Re: BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows - Mailing list pgsql-bugs

From Decibel!
Subject Re: BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows
Date
Msg-id 20070816140910.GA54309@nasby.net
Whole thread Raw
In response to BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows  ("Jens Schicke" <j.schicke@asco.de>)
Responses Re: BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows
List pgsql-bugs
On Thu, Aug 16, 2007 at 11:11:49AM +0000, Jens Schicke wrote:
>=20
> The following bug has been logged online:
>=20
> Bug reference:      3543
> Logged by:          Jens Schicke
> Email address:      j.schicke@asco.de
> PostgreSQL version: 8.2.4
> Operating system:   GNU/Linux
> Description:        ARRAY(SELECT ...) contruct yields NULL without rows
> Details:=20
>=20
> SELECT ARRAY(SELECT 1 WHERE 1 =3D 0) IS NULL; -- true

And just what would you have it return? An array with no elements is by
definition NULL.
--=20
Decibel!, aka Jim Nasby                        decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #3542: Dropped and recreated columns have problems with NOT NULL contraints
Next
From: Tom Lane
Date:
Subject: Re: BUG #3543: ARRAY(SELECT ...) contruct yields NULL without rows