From: Tom Lane <tgl@sss.pgh.pa.us>
To: daryl.waycott@edgeintelligence.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16013: Unexpected results from bit field query
Date: Sun, 22 Sep 2019 17:47:49 -0400
Message-ID: <16290.1569188869@sss.pgh.pa.us> (raw)
In-Reply-To: <27542.1568864239@sss.pgh.pa.us>
References: <16013-c2765b6996aacae9@postgresql.org>
<27542.1568864239@sss.pgh.pa.us>
I wrote:
> PG Bug reporting form <noreply@postgresql.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 ...
After digging around, it seems that no other bit functions have
this issue. I've pushed a fix --- thanks for the report!
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, daryl.waycott@edgeintelligence.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16013: Unexpected results from bit field query
In-Reply-To: <16290.1569188869@sss.pgh.pa.us>
* 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