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

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix integer-to-bit-string conversions to handle the first
Date
Msg-id 20091212192504.45971753FB7@cvs.postgresql.org
Whole thread Raw
List 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_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        varbit.c (r1.47.2.1 -> r1.47.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varbit.c?r1=1.47.2.1&r2=1.47.2.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix integer-to-bit-string conversions to handle the first
Next
From: mha@postgresql.org (Magnus Hagander)
Date:
Subject: pgsql: Allow LDAP authentication to operate in search+bind mode, meaning