Like seems to fail !

From: Yves Martin <yma(at)elca(dot)ch>
To: pgsql-sql(at)postgresql(dot)org
Subject: Like seems to fail !
Date: 2000-11-17 08:58:23
Message-ID: 00111710092402.00703@pcyma.elca.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

Browse pgsql-sql by date

  From Date Subject
Next Message Arnaud Vandyck 2000-11-17 09:01:28 how many rows? [was Re: fetching rows]
Previous Message Astrid Hexsel 2000-11-17 03:33:17 delete more than one row