pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Savita <savita.halli@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5877: problem with wild char used in where clause
Date: Thu, 10 Feb 2011 11:02:40 GMT
Message-ID: <201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org> (raw)


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



view thread (4+ messages)  latest in thread

Message-ID: <201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org>
Permalink:  ../201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org

 · 

reply

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-bugs@postgresql.org
  Cc: savita.halli@gmail.com
  Subject: Re: BUG #5877: problem with wild char used in where clause
  In-Reply-To: <201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org>
  References: <201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org>

* 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