List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:January 21 2001 5:41am
Subject:Re: VARCHAR comparison problem
View as plain text  
At 11:01 PM -0600 1/20/01, Andrei Zmievski wrote:
>At 06:34 PM 1/20/01 -0800, Jeremy D. Zawodny wrote:
>>MySQL does trailing whitespace removal on all VARCHAR data as
>>described in the manual.
>Hmm, well that presents a problem in my application that counts on 
>exact comparisons - I guess a way to do it is to use 'like' instead 
>of '='?

You might consider using one of the TEXT types.  Trailing space removal
isn't used for those types.

Paul DuBois, paul@stripped
VARCHAR comparison problemAndrei Zmievski20 Jan
  • Re: VARCHAR comparison problemJeremy D. Zawodny21 Jan
    • Re: VARCHAR comparison problemAndrei Zmievski21 Jan
      • Re: VARCHAR comparison problemPaul DuBois21 Jan