pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Gould <mgould@intermodalsoftwaresolutions.net>
To: Gary Chambers <gwchamb@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Proper case function
Date: Thu, 31 Dec 2009 12:17:26 -0600
Message-ID: <b438f326e635060f808c7af513f0653c@intermodalsoftwaresolutions.net> (raw)
In-Reply-To: <302670f20912310940v2307bd0ey368815943615d37e@mail.gmail.com>

Gary,

Based on what I read it wouldn't handle cases where the result should be

MacDonald from macdonald.  There are other cases such as the sentence below

('it''s crazy! i couldn''t believe kate mcdonald, leo dicaprio, (terrence)
trent d''arby (circa the 80''s), and jada pinkett-smith all showed up to
[cHris o''donnell''s] party...donning l''oreal lIpstick! They''re heading to
o''neil''s pub later on t''nite. the_underscore_test. the-hyphen-test)

This wouldn't handle the quotes and proper case all of the words.

Best Regards

Mike Gould


"Gary Chambers" <gwchamb@gmail.com> wrote:
>> Has anyone got a proper case function that they are willing to share.
 We're
>> moving from SQL Anywhere to PostgreSQL and decided that much of our data
is
>> upper case when it really should be proper cased.  The columns that we
will
>> be putting proper case data in are all defined using the contrib module
>> citext which makes searching very nice.
> 
> Why doesn't the initcap function work as you require?
> 
> -- Gary Chambers
> 
> /* Nothing fancy and nothing Microsoft! */
> 
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
> 

--
Michael Gould, Managing Partner
Intermodal Software Solutions, LLC
904.226.0978
904.592.5250 fax





view thread (8+ messages)  latest in thread

Message-ID: <b438f326e635060f808c7af513f0653c@intermodalsoftwaresolutions.net>
Permalink:  ../b438f326e635060f808c7af513f0653c@intermodalsoftwaresolutions.net/
Also on:    postgresql.org/message-id/b438f326e635060f808c7af513f0653c@intermodalsoftwaresolutions.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mgould@intermodalsoftwaresolutions.net, gwchamb@gmail.com
  Subject: Re: Proper case function
  In-Reply-To: <b438f326e635060f808c7af513f0653c@intermodalsoftwaresolutions.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox