Re: Syntax for wildcard selection - Mailing list pgsql-general

From Scott Holmes
Subject Re: Syntax for wildcard selection
Date
Msg-id 200108160503.WAA02154@scotts.mynetwork.net
Whole thread Raw
In response to Re: Syntax for wildcard selection  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
The field is, indeed, a char(17) field.  This particular database is actually
a copy of the same schema we use in our Informix applications.  The
definitions for that system were almost completely correct for creating the
PostgreSQL version, thus many fields are defined as char(x).  I shall try
redefining those fields that are of variable length as varchar() and see what
happens.

Thanks...

> The only thing I can think of is that you are using char() fields and the
> like is getting confused by the trailing spaces. Certainly putting wildcards
> anywhere in the string works fine.
>
> What is the data type of your column? text and varchar() wouldn't suffer
> from the above problem.
> --
> Martijn van Oosterhout <kleptog@svana.org>


pgsql-general by date:

Previous
From: "mike"
Date:
Subject: GUI Application mode
Next
From: bend@ITstuff.net (John Bend)
Date:
Subject: Re: Cant compile using stock RH71 and libpq++