Re: Case insensitivity, and option? - Mailing list pgsql-hackers

From Ron Mayer
Subject Re: Case insensitivity, and option?
Date
Msg-id POEDIPIPKGJJLDNIEMBEIEOECFAA.ron@intervideo.com
Whole thread Raw
In response to Case insensitivity, and option?  (mlw <pgsql@mohawksoft.com>)
List pgsql-hackers
mlw wrote:
> ...
>select * from table where field = 'blah';
>gave the same results as:
>select * from table where field = 'BLah';
>
>I was shocked. (a) because I know a lot of my code could be easier to 
>write
> ...

select * from table where field ILIKE 'blAH';  -- ;-)

is almost as easy :-)

PS: no, don't do this if you want portability.   I think the charset   idea's a better one.
 Ron



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: regproc's lack of certainty is dangerous
Next
From: Sailesh Krishnamurthy
Date:
Subject: some more docbook help