Re: string_to_array with an empty input string

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Thom Brown <thom(at)linux(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: string_to_array with an empty input string
Date: 2010-08-10 23:37:42
Message-ID: AANLkTin9UcHocKEgwCbcaArfMnhN2t5xHwSFLwWEbrK1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10 August 2010 19:48, David E. Wheeler <david(at)kineticode(dot)com> wrote:
> On Aug 10, 2010, at 11:46 AM, Thom Brown wrote:
>
>> I, personally, would expect an empty array output given an empty
>> input, and a null output for a null input.
>
> +1

Agreed. After all, the result isn't indeterminate - it's an empty
array. Some people might think that it's useful for the result to be
NULL, but they'd probably also think that it's useful for an empty
string to be NULL.

--
Regards,
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-08-10 23:56:26 Re: 8.3 to 8.4 Upgrade issues
Previous Message Rod Taylor 2010-08-10 23:36:13 Re: 8.3 to 8.4 Upgrade issues