]> granicus.if.org Git - postgresql/commit
Fix integer-to-bit-string conversions to handle the first fractional byte
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Dec 2009 19:25:10 +0000 (19:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Dec 2009 19:25:10 +0000 (19:25 +0000)
commit2714d78dacb920888b5a84720f3227672b2a05db
tree65d75eee79c17dc4a5ef422bbf1a39feba218ba2
parentf061928c91d407a709b04770713a7e5739778b64
Fix integer-to-bit-string conversions to handle the first fractional byte
correctly when the output bit width is wider than the given integer by
something other than a multiple of 8 bits.

This has been wrong since I first wrote that code for 8.0 :-(.  Kudos to
Roman Kononov for being the first to notice, though I didn't use his
patch.  Per bug #5237.
src/backend/utils/adt/varbit.c