pgsql: Fix integer-to-bit-string conversions to handle the first

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix integer-to-bit-string conversions to handle the first
Date: 2009-12-12 19:25:10
Message-ID: 20091212192510.6CB4B753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
varbit.c (r1.44.4.1 -> r1.44.4.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.44.4.1&r2=1.44.4.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2009-12-12 21:35:21 pgsql: Allow LDAP authentication to operate in search+bind mode, meaning
Previous Message Tom Lane 2009-12-12 19:25:04 pgsql: Fix integer-to-bit-string conversions to handle the first