Re: BUG #2579: initcap should not capitalize letter - Mailing list pgsql-bugs

From Stefan Kaltenbrunner
Subject Re: BUG #2579: initcap should not capitalize letter
Date
Msg-id 44E74B48.2000505@kaltenbrunner.cc
Whole thread Raw
In response to Re: BUG #2579: initcap should not capitalize letter  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
Bruce Momjian wrote:
> Dan Franklin wrote:
>> Good point.  It is probably not possible to get
>> it perfect.  But I think that possessives and
>> contractions occur more often in a typical body
>> of text than Irish names.  So it would be right
>> more often, even if it is still wrong some of the time.
>>
>
> The function came from Oracle.  How does Oracle's initcap() handle this?

looks like our behaviour is similiar to what oracle does:

Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> select initcap('John''s Parents') from DUAL;

INITCAP('JOHN'
--------------
John'S Parents

SQL> select initcap('Flann O''Brian') from DUAL;

INITCAP('FLAN
-------------
Flann O'Brian


Stefan

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #2579: initcap should not capitalize letter
Next
From: Richard Troy
Date:
Subject: Re: BUG #2579: initcap should not capitalize letter