Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group