Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 90AA51337BC4 for ; Thu, 10 Feb 2011 07:02:41 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12780-05 for ; Thu, 10 Feb 2011 11:02:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id ED6CB1337BC2 for ; Thu, 10 Feb 2011 07:02:40 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p1AB2e0D025164 for ; Thu, 10 Feb 2011 11:02:40 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p1AB2eCZ025163; Thu, 10 Feb 2011 11:02:40 GMT (envelope-from www) Date: Thu, 10 Feb 2011 11:02:40 GMT Message-Id: <201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5877: problem with wild char used in where clause From: "Savita" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201102/96 X-Sequence-Number: 29368 The following bug has been logged online: Bug reference: 5877 Logged by: Savita Email address: savita.halli@gmail.com PostgreSQL version: 8.3.5 Operating system: Solaris Description: problem with wild char used in where clause Details: I have a table with id as primary key. "slect id from table" gives me following data id -------------- AB1 AB2 AB3 AB4 (4 rows) Now when I need ids which starts from A select id from table where id like 'A%'; Gives the follwoing result set. id -------------- AB1 AB2 AB3 AB4 (4 rows) When I ran query to get the ids which ends with B1 select id from table where id like '%B1' does not return me any rows. Should it be not returning row with id AB1? Is there known issue? Thanks in advance Savita