Re: Syntax for wildcard selection

From: Scott Holmes <scott(at)pacificnet(dot)net>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: PG-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Syntax for wildcard selection
Date: 2001-08-16 05:03:51
Message-ID: 200108160503.WAA02154@scotts.mynetwork.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org>

Browse pgsql-general by date

  From Date Subject
Next Message Sodom 2001-08-16 05:11:43 connect to postgresql by TCP problem
Previous Message Barry Lind 2001-08-16 03:58:33 Re: JDBC commit() not working?