Re: split_part bug - Mailing list pgsql-hackers

From Tom Lane
Subject Re: split_part bug
Date
Msg-id 4413.1100728707@sss.pgh.pa.us
Whole thread Raw
In response to split_part bug  (John Hansen <john@geeknet.com.au>)
Responses Re: split_part bug  (John Hansen <john@geeknet.com.au>)
List pgsql-hackers
John Hansen <john@geeknet.com.au> writes:
> PostgreSQL 8.0b4 as released.
> 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);
> 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);
> 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);
> 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);

> should return a b c, and d
> returns a, null, null, null

Works fine for me.  What encoding/locale are you using?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Tired of -Wold-style-definition already
Next
From: Greg Stark
Date:
Subject: Re: ambiguous column names in subqueries