Re: [HACKERS] string_to_array with empty input - Mailing list pgsql-general

From Tom Lane
Subject Re: [HACKERS] string_to_array with empty input
Date
Msg-id 10720.1238513836@sss.pgh.pa.us
Whole thread Raw
In response to Re: string_to_array with empty input  (Greg Stark <stark@enterprisedb.com>)
List pgsql-general
Greg Stark <stark@enterprisedb.com> writes:
> On Tue, Mar 31, 2009 at 3:42 PM, Sam Mason <sam@samason.me.uk> wrote:
>> string_to_array('',',')::INT[] �=> invalid input syntax for integer: ""

> Oof. That's a good point.

Isn't that an argument in favor of the zero-size-array definition?

            regards, tom lane

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: string_to_array with empty input
Next
From: Marcin Krol
Date:
Subject: weird problem with PG 8.1