From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | array_to_string bug? |
Date: | 2009-11-12 15:55:13 |
Message-ID: | 20091112155513.GB26790@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Folks,
Here's expected behavior:
davidfetter(at)postgres=# SELECT array(values(1),(null));
?column?
──────────
{1,NULL}
(1 row)
The next one is just plain unexpected. Either it's a bug, or it needs
more documentation in the function description in the docs, \df+
output, etc.
davidfetter(at)postgres=# SELECT array_to_string(array(values(1),(null)),'');
array_to_string
─────────────────
1
(1 row)
I would have expected it to come out as NULL.
What say?
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joachim Wieland | 2009-11-12 16:00:07 | Re: Listen / Notify rewrite |
Previous Message | Greg Stark | 2009-11-12 15:48:44 | Re: Listen / Notify rewrite |