]> git.ipfire.org Git - thirdparty/postgresql.git/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:24:51 +0000 (19:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Dec 2009 19:24:51 +0000 (19:24 +0000)
commit65a5d12be1651a2c535c8b8f5e99a695d4036159
tree78997aa5032b1fe3d112e3bdd5f7c7f0e0f561f3
parentf25013104a1f5c5a98c59a2fe51b8c3d14772acc
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