pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Splitting string into char array with string_to_array <valgog@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5831: Splitting string into char array with string_to_array does not work
Date: Tue, 11 Jan 2011 15:44:48 GMT
Message-ID: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5831
Logged by:          Splitting string into char array with string_to_array
Email address:      valgog@gmail.com
PostgreSQL version: 9.0.1
Operating system:   Ubuntu/Linaro 4.4.4-14ubuntu5
Description:        Splitting string into char array with string_to_array
does not work
Details: 

Hi, 

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. Now I have the following behavior: 

    postgres=# select string_to_array('ab', '' ),
regexp_split_to_array('ab', '' );
     string_to_array │ regexp_split_to_array 
   
─────────────────┼───────â
”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
     {ab}            │ {a,b}
    (1 row)

Why an empty string given as a separator to string_to_array is not splitting
the string at all?



view thread (3+ messages)  latest in thread

Message-ID: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org>
Permalink:  ../201101111544.p0BFimF1087272@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201101111544.p0BFimF1087272@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: valgog@gmail.com
  Subject: Re: BUG #5831: Splitting string into char array with string_to_array does not work
  In-Reply-To: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org>
  References: <201101111544.p0BFimF1087272@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox