Re: split_part bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: split_part bug
Date
Msg-id 4756.1100730461@sss.pgh.pa.us
Whole thread Raw
In response to Re: split_part bug  (John Hansen <john@geeknet.com.au>)
Responses Re: split_part bug
List pgsql-hackers
John Hansen <john@geeknet.com.au> writes:
>> Works fine for me.  What encoding/locale are you using?

> unicode / c

[ shrug... ]  Works fine for me in unicode, too.

u=# select split_part('a b c d e f g h i j k l m n o p q r s t u v w x y z',' ',1);split_part
------------a
(1 row)

u=# select split_part('a b c d e f g h i j k l m n o p q r s t u v w x y z',' ',2);split_part
------------b
(1 row)

u=# select split_part('a b c d e f g h i j k l m n o p q r s t u v w x y z',' ',3);split_part
------------c
(1 row)

u=# select split_part('a b c d e f g h i j k l m n o p q r s t u v w x y z',' ',4);split_part
------------d
(1 row)

        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: ambiguous column names in subqueries
Next
From: John Hansen
Date:
Subject: Re: split_part bug