Re: BUG #5831: Splitting string into char array with string_to_array does not work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Splitting string into char array with string_to_array" <valgog(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5831: Splitting string into char array with string_to_array does not work
Date: 2011-01-11 16:16:05
Message-ID: 18908.1294762565@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Splitting string into char array with string_to_array" <valgog(at)gmail(dot)com> writes:
> I cannot really remember now for sure, but the splitting string into array
> using an empty string ('') worked for me on pre-9.0 versions to get array of
> string chars.

Really? I get this in all versions since 7.4, where string_to_array was
introduced:

regression=# select string_to_array('ab', '' );
string_to_array
-----------------
{ab}
(1 row)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2011-01-11 17:12:15 Re: BUG #5830: Cannot connect to the server
Previous Message Splitting string into char array with string_to_array 2011-01-11 15:44:48 BUG #5831: Splitting string into char array with string_to_array does not work