From: Yves Martin <yma@elca.ch>
To: sqllist <pgsql-sql@postgresql.org>
Subject: Like seems to fail !
Date: Mon, 20 Nov 2000 08:28:03 +0100
Message-ID: <00112008291300.01625@pcyma.elca.ch> (raw)
Hello,
I have a strange problem with 'like' behaviour
when I upgrade from 6.5 to 7.0
Here is my table :
create table persistent_config (
key varchar primary key,
type varchar(12),
value varchar not null
)
and its content :
base=# select * from persistent_config;
key | type | value
------------+------+--------------
/test/info | | avalue
/try/info | | avalue
/test/key | | changedvalue
(3 rows)
And I try this 'like' command in psql :
base=# select * from persistent_config where key like '/test%';
key | type | value
------------+------+--------------
/test/info | | avalue
/test/key | | changedvalue
(2 rows)
Result is ok !
By now, this other one :
base=# select * from persistent_config where key like '/%';
key | type | value
-----+------+-------
(0 rows)
There is really something wrong ! All current content should have been
returned. Is '/' caracter a new 'escape' caracter since version 6.5
In fact, my query was working well on postgresql 6.5 and since I upgraded
to 7.0, this simple command failed.
Is it a bug, or I missed something ?
Regards,
--
Yves Martin
yma, Lausanne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: yma@elca.ch
Subject: Re: Like seems to fail !
In-Reply-To: <00112008291300.01625@pcyma.elca.ch>
References: <00112008291300.01625@pcyma.elca.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox