Re: lower() not working correctly...?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: lower() not working correctly...?
Date: 2006-09-15 08:44:22
Message-ID: 450A67E6.9070407@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Andreas Joseph Krogh a ecrit le 15/09/2006 10:06:
> I have the following query:
>
> select lower(firstname) || ' ' || lower(lastname) from person
>
> firstname and lastname are VARCHAR
>
> lower() returns NULL when firstname OR lastname is NULL, is this correct?
>
> This is 8.2devel from 24.08.2006.
>

NULL is an unkown value. lower of an unkown value is unknown... thus
NULL. This is correct behavior.

--
Guillaume.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message A. Kretschmer 2006-09-15 08:44:25 Re: lower() not working correctly...?
Previous Message Mario Weilguni 2006-09-15 08:21:02 Re: lower() not working correctly...?