why don't string function work in WHERE clause? - Mailing list pgsql-general

From Dragan Matic
Subject why don't string function work in WHERE clause?
Date
Msg-id 3EB04D99.3000100@eunet.yu
Whole thread Raw
Responses Re: why don't string function work in WHERE clause?  (Dennis Gearon <gearond@cvc.net>)
List pgsql-general
Here's a sample:

select column1 from table1 where lower(column1) = 'some_string'

will not give me any results although column1 (defined as char[50]) has
values like
'Some_string' or 'SOME_STRING'

if for instance I say something like:

select lower(column1) from table1 where column1 = 'SOME_STRING'

then it returns 'some_string' correctly. The same thing happens with
'upper' and similar functions. Why don't they work when they are in
WHERE clause?

Dragan Matic


pgsql-general by date:

Previous
From: jd@commandprompt.com (Joshua Drake)
Date:
Subject: Re: Upgrade to RedHat 9.0 broke PostgreSQL
Next
From: wsheldah@lexmark.com
Date:
Subject: box function implemented?