| От | Stefan Kaltenbrunner |
|---|---|
| Тема | Re: BUG #2579: initcap should not capitalize letter |
| Дата | |
| Msg-id | 44E74B48.2000505@kaltenbrunner.cc обсуждение исходный текст |
| Ответ на | Re: BUG #2579: initcap should not capitalize letter (Bruce Momjian <bruce@momjian.us>) |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера