Re: Empty arrays with ARRAY[]

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Empty arrays with ARRAY[]
Date: 2007-11-25 16:58:20
Message-ID: 20071125165820.GD32482@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

On Mon, Nov 26, 2007 at 03:51:37AM +1100, Brendan Jurd wrote:
> Hi all,
>
> I noticed in the 8.3 release notes that ARRAY(SELECT ...) now returns
> an empty array if there are no rows returned by the subquery.

This has come up before, Tom had an idea about how to fix it:

http://groups.google.com/group/pgsql.general/browse_thread/thread/911791e145a17daa/6b035035aeaac399
http://www.mail-archive.com/pgsql-general(at)postgresql(dot)org/msg90681.html

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kris Jurka 2007-11-25 17:18:44 Re: Error while compiling PostgreSQL with Java
Previous Message Brendan Jurd 2007-11-25 16:51:37 Empty arrays with ARRAY[]

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2007-11-25 17:17:26 Re: quote_literal(integer) does not exist
Previous Message Brendan Jurd 2007-11-25 16:51:37 Empty arrays with ARRAY[]

Browse pgsql-patches by date

  From Date Subject
Next Message Pavel Stehule 2007-11-25 17:15:37 quote_literal(anyelement) was: quote_literal(integer) does not exist
Previous Message Brendan Jurd 2007-11-25 16:51:37 Empty arrays with ARRAY[]