why don't string function work in WHERE clause?

From: Dragan Matic <gekko(at)eunet(dot)yu>
To: pgsql-general(at)postgresql(dot)org
Subject: why don't string function work in WHERE clause?
Date: 2003-04-30 22:26:33
Message-ID: 3EB04D99.3000100@eunet.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-04-30 22:59:39 Re: why don't string function work in WHERE clause?
Previous Message wsheldah 2003-04-30 22:04:03 box function implemented?