]> 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:24:44 +0000 (19:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Dec 2009 19:24:44 +0000 (19:24 +0000)
commite2668636ca5e306c213eef52082a6e2ed1246608
tree8b9241ec06c08258fd5c06684afcb986a834f4dd
parent5cc7c13022bf08ef72abfd19d193bc6f2b6b6809
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