Re: lower() not working correctly...? - Mailing list pgsql-sql

From Guillaume Lelarge
Subject Re: lower() not working correctly...?
Date
Msg-id 450A67E6.9070407@lelarge.info
Whole thread Raw
In response to lower() not working correctly...?  (Andreas Joseph Krogh <andreak@officenet.no>)
Responses Re: lower() not working correctly...?  (<Amit_Wadhwa@Dell.com>)
List 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.


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: lower() not working correctly...?
Next
From:
Date:
Subject: Re: lower() not working correctly...?