Re: Problem with sql function LOWER - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: Problem with sql function LOWER
Date
Msg-id 25264.1025711806@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem with sql function LOWER  ("Th Templ" <templ_th@hotmail.com>)
List pgsql-jdbc
"Th Templ" <templ_th@hotmail.com> writes:
> SELECT Nom,Prenom from personne where
> LOWER(Nom)='test';

I'm guessing that Nom is of type char(N) and therefore has padding
spaces in it.  You should use varchar or text instead of char to
avoid this sort of difficulty.

            regards, tom lane



pgsql-jdbc by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Re: Problem with sql function LOWER
Next
From: Bruce Momjian
Date:
Subject: Re: switching db's on the fly