Re: array_to_string bug? - Mailing list pgsql-hackers

From David Fetter
Subject Re: array_to_string bug?
Date
Msg-id 20091112180614.GA13922@fetter.org
Whole thread Raw
In response to Re: array_to_string bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Nov 12, 2009 at 11:20:26AM -0500, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > The next one is just plain unexpected.
> 
> array_to_string ignores null elements.  What do you think it should
> do with them?

It should concatenate them, i.e. return a NULL if the array includes
any NULLs.  That, or it should explain that it doesn't do that because
there's nothing in the docs that would indicate this behavior.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: next CommitFest
Next
From: Josh Berkus
Date:
Subject: Re: [RRR] CommitFest 2009-11 Call for Reviewers