Re: initcap() whitespace bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: initcap() whitespace bug
Дата
Msg-id 24503.1101848650@sss.pgh.pa.us
обсуждение исходный текст
Ответ на initcap() whitespace bug  ("Darrell Walisser" <dwalisser@mediak.com>)
Ответы Re: initcap() whitespace bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
"Darrell Walisser" <dwalisser@mediak.com> writes:
> It appears that "'" is being considered as a whitespace (and perhaps other
> punctuation, haven't checked myself):

Hmm.  The documentation is at variance with the code, which clearly says

 *     Returns string, with first letter of each word in uppercase, all
 *     other letters in lowercase. A word is defined as a sequence of
 *     alphanumeric characters, delimited by non-alphanumeric
 *     characters.

and indeed implements it that way.

It looks like we changed the code to match what Oracle does on
7/27/2003, but forgot to fix the documentation.  Will fix, thanks
for the report.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Darrell Walisser"
Дата:
Сообщение: initcap() whitespace bug
Следующее
От: Tom Lane
Дата:
Сообщение: Re: initcap() whitespace bug