Re: BUG #16013: Unexpected results from bit field query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: daryl(dot)waycott(at)edgeintelligence(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16013: Unexpected results from bit field query
Date: 2019-09-19 03:37:19
Message-ID: 27542.1568864239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> A query using a right bit shift and an equality on a bit field seems to
> return incorrect results.

Ugh. bit_cmp expects that any unused bits in the last byte
are guaranteed zero, but bitshiftright isn't ensuring that.
Didn't look to see if the same bug exists anywhere else ...

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-09-19 04:19:34 Re: citext LIKE search bug
Previous Message Morris de Oryx 2019-09-19 01:39:08 Fwd: citext LIKE search bug