BUG #5877: problem with wild char used in where clause - Mailing list pgsql-bugs

From Savita
Subject BUG #5877: problem with wild char used in where clause
Date
Msg-id 201102101102.p1AB2eCZ025163@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5877: problem with wild char used in where clause  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: BUG #5877: problem with wild char used in where clause  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: BUG #5877: problem with wild char used in where clause  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: crash in 9.1's psql:describeOneTableDetails
Next
From: "Jan-Peter Seifert"
Date:
Subject: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail