Re: BUG #16013: Unexpected results from bit field query
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: daryl.waycott@edgeintelligence.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-09-19T03:37:19Z
Lists: pgsql-bugs
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 ... regards, tom lane
Commits
-
Fix failure to zero-pad the result of bitshiftright().
- 8a17afe84be6 9.4.25 landed
- 860216efa10a 12.0 landed
- 7e7abed056df 11.6 landed
- 6ddd164aaa34 9.6.16 landed
- 35eb132700ba 9.5.20 landed
- 096d34c3ba78 10.11 landed
- 5ac0d93600c1 13.0 landed