Re: is this a bug or I am blind?

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Gregory S(dot) Williamson" <gsw(at)globexplorer(dot)com>
Cc: Mage <mage(at)mage(dot)hu>, pgsql-general(at)postgresql(dot)org
Subject: Re: is this a bug or I am blind?
Date: 2005-12-15 14:41:54
Message-ID: 43A180B2.8000509@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory S. Williamson wrote:
>
> I am puzzled by the lack of a "%" in the LIKE query. When I try this on postgres 7.4 and 8.0 I get no rows when I am missing it; including it works as expected.
>
> The names have been changed to protect the guilty ;-} but the core of it is true -- no "%" means wierdnesses, I think.
>
> gex_runtime=# select gex_clientname from gex_clients where gex_clientname like 'Home';
> gex_clientname
> ----------------
> (0 rows)
>
> gex_runtime=# select gex_clientname from gex_clients where gex_clientname like 'Home%';
> gex_clientname
> --------------------------------------------------------------
> HomeHappinesses
> HomeMorgageValues, Inc.
> (2 rows)
>
> Could you try your query again with the wild card ?

But "like" without any wildcards should be the same as "=", but it isn't
in the original post.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mage 2005-12-15 14:56:12 Re: is this a bug or I am blind?
Previous Message Richard Huxton 2005-12-15 14:40:34 Re: is this a bug or I am blind?