Re: string_to_array with an empty input string - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: string_to_array with an empty input string
Date
Msg-id AANLkTin9UcHocKEgwCbcaArfMnhN2t5xHwSFLwWEbrK1@mail.gmail.com
Whole thread Raw
In response to Re: string_to_array with an empty input string  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: string_to_array with an empty input string
List pgsql-hackers
On 10 August 2010 19:48, David E. Wheeler <david@kineticode.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


pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: 8.3 to 8.4 Upgrade issues
Next
From: Tom Lane
Date:
Subject: Re: 8.3 to 8.4 Upgrade issues