Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] string_to_array with empty input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <stark(at)enterprisedb(dot)com>
Cc: Sam Mason <sam(at)samason(dot)me(dot)uk>, pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] string_to_array with empty input
Date: 2009-03-31 15:37:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackers
Greg Stark <stark(at)enterprisedb(dot)com> writes:
> On Tue, Mar 31, 2009 at 3:42 PM, Sam Mason <sam(at)samason(dot)me(dot)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

In response to

pgsql-hackers by date

Next:From: Greg StarkDate: 2009-03-31 15:37:36
Subject: Re: Fwd: Abwesend: [GENERAL] string_to_array with empty input
Previous:From: Sam MasonDate: 2009-03-31 15:34:01
Subject: Re: string_to_array with empty input

pgsql-general by date

Next:From: Scott MarloweDate: 2009-03-31 15:45:28
Subject: Re: Server Performance
Previous:From: Marcin KrolDate: 2009-03-31 15:35:58
Subject: weird problem with PG 8.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group