Greg Stark wrote:
On Tue, Mar 31, 2009 at 5:48 PM, justin <[email protected]> wrote:But consider this fails also I disagree. Casting a string to something else can be a very error prone to begin with. Having string_to_array() to deal with that possibility is out of its scope IMHO. Consider this. I have intelligent part numbers that need to be split apart to simplify searching and do math with. string_to_array(' F-2500-50 ', '-' ) ::int[] Still fails with an error as expected. what is the difference between ' ' and 'F' So before doing any thing a test needs to be done to verify the contents, so it can be casted to something else. |
- Re: [GENERAL] string_to_array with empty input Tom Lane
- Re: [GENERAL] string_to_array with empty input Justin
- Re: [HACKERS] [GENERAL] string_to_array with empty i... David E. Wheeler
- Re: [GENERAL] string_to_array with empty input Greg Stark
- Re: [HACKERS] [GENERAL] string_to_array with empty i... Brendan Jurd
- Re: [HACKERS] [GENERAL] string_to_array with emp... Sam Mason
- Re: [GENERAL] string_to_array with empty inp... Greg Stark
- Re: [HACKERS] [GENERAL] string_to_array with... justin
- Re: [GENERAL] string_to_array with empty... Greg Stark
- Re: [GENERAL] string_to_array with ... justin
- Re: [GENERAL] string_to_array w... Greg Stark
- Re: [GENERAL] string_to_array w... justin
- Re: [GENERAL] string_to_array with empty input Greg Stark
- Re: [GENERAL] string_to_array with empty inp... Sam Mason
- Re: [HACKERS] [GENERAL] string_to_array ... David E. Wheeler
- Re: [GENERAL] string_to_array with empty... Greg Stark
- Re: [GENERAL] string_to_array with ... Sam Mason
- Re: [GENERAL] string_to_array with empty... justin
