Re: initcap() whitespace bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Darrell Walisser" <dwalisser(at)mediak(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: initcap() whitespace bug
Date: 2004-11-30 21:04:10
Message-ID: 24503.1101848650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Darrell Walisser" <dwalisser(at)mediak(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-11-30 21:09:58 Re: initcap() whitespace bug
Previous Message Bruce Momjian 2004-11-30 19:48:53 Re: BUG #1319: Windows LIB file libecpg.lib not in build or package