BUG #1454: error in "select * from table where a1 like '%\%%' " ???

From: "Ricky" <ricky(at)ez2(dot)us>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1454: error in "select * from table where a1 like '%\%%' " ???
Date: 2005-02-01 09:16:43
Message-ID: 20050201091643.8990B9A5812@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1454
Logged by: Ricky
Email address: ricky(at)ez2(dot)us
PostgreSQL version: 8.0
Operating system: Mandrake Linux 10.1
Description: error in "select * from table where a1 like '%\%%' " ???
Details:

I perform a query to get data,which contains '%'.
so I do this query.
select * from table where a1 like '%\%%';
but it returns all rows.
then I do another query.
select * from table where a1 like '\%';
but it still return all rows.
like "select * from table"

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2005-02-01 10:10:35 Re: [Feed-back] Installing PostgreSQL 8.0.0 on SPARC/Solaris. Configure and install issues.
Previous Message Mehul Doshi-A20614 2005-02-01 07:03:06 Re: Template1 is locked when pgAdminIII is open