Re: BUG #2579: initcap should not capitalize letter

From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Dan Franklin <dfranklin(at)fen(dot)com>, tomas(at)tuxteam(dot)de, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2579: initcap should not capitalize letter
Date: 2006-08-19 17:32:56
Message-ID: 44E74B48.2000505@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Richard Troy 2006-08-19 17:34:21 Re: BUG #2579: initcap should not capitalize letter
Previous Message mafm 2006-08-19 17:12:08 BUG #2585: Please provide pkg-config support