Problem when fetching data of BIT column.

Problem when fetching data of BIT column.

am 24.11.2010 05:26:24 von Taizo ITO

This is a multi-part message in MIME format.
--------------010503020308040003000400
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

Hi alls,

I got a error when trying to fetch data from BIT column.
The problem is that last 4 bits of data are filled with null.

I created a patch that fixes the bug.
Please commit the attached patch to trunk.

Regards,
Taizo ITO

--------------010503020308040003000400
Content-Type: text/plain;
name="psqlodbc-mod_length_bit.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="psqlodbc-mod_length_bit.patch"

ZGlmZiAtdU5yIHBzcWxvZGJjLTA5LjAwLjAyMDAub3JpZy9pbmZvLmMgcHNx
bG9kYmMtMDkuMDAuMDIwMC9pbmZvLmMNCi0tLSBwc3Fsb2RiYy0wOS4wMC4w
MjAwLm9yaWcvaW5mby5jCTIwMTAtMTAtMjMgMDQ6NTQ6MTMuMDAwMDAwMDAw
ICswOTAwDQorKysgcHNxbG9kYmMtMDkuMDAuMDIwMC9pbmZvLmMJMjAxMC0x
MS0xOSAxOToxNToxNC4wMDAwMDAwMDAgKzA5MDANCkBAIC0yNTc2LDYgKzI1
NzYsNyBAQA0KIAkJCWNhc2UgUEdfVFlQRV9USU1FU1RBTVBfTk9fVE1aT05F
Og0KIAkJCWNhc2UgUEdfVFlQRV9USU1FOg0KIAkJCWNhc2UgUEdfVFlQRV9U
SU1FX1dJVEhfVE1aT05FOg0KKwkJCWNhc2UgUEdfVFlQRV9CSVQ6DQogCQkJ
CWJyZWFrOw0KIAkJCWRlZmF1bHQ6DQogCQkJCW1vZF9sZW5ndGggLT0gNDsN
CmRpZmYgLXVOciBwc3Fsb2RiYy0wOS4wMC4wMjAwLm9yaWcvcGd0eXBlcy5o
IHBzcWxvZGJjLTA5LjAwLjAyMDAvcGd0eXBlcy5oDQotLS0gcHNxbG9kYmMt
MDkuMDAuMDIwMC5vcmlnL3BndHlwZXMuaAkyMDEwLTA4LTIxIDE1OjI5OjIw
LjAwMDAwMDAwMCArMDkwMA0KKysrIHBzcWxvZGJjLTA5LjAwLjAyMDAvcGd0
eXBlcy5oCTIwMTAtMTEtMTkgMTk6MTQ6MzkuMDAwMDAwMDAwICswOTAwDQpA
QCAtNzIsNiArNzIsNyBAQA0KICNkZWZpbmUgUEdfVFlQRV9JTlRFUlZBTAkJ
MTE4Ng0KICNkZWZpbmUgUEdfVFlQRV9USU1FX1dJVEhfVE1aT05FCTEyNjYJ
CS8qIHNpbmNlIDcuMSAqLw0KICNkZWZpbmUgUEdfVFlQRV9USU1FU1RBTVAJ
CTEyOTYJLyogZGVwcmVjYXRlZCBzaW5jZSA3LjAgKi8NCisjZGVmaW5lIFBH
X1RZUEVfQklUCQkJMTU2MA0KICNkZWZpbmUgUEdfVFlQRV9OVU1FUklDCQkJ
MTcwMA0KICNkZWZpbmUgUEdfVFlQRV9SRUZDVVJTT1IJCTE3OTANCiAjZGVm
aW5lIFBHX1RZUEVfUkVDT1JECQkJMjI0OQ0K

--------------010503020308040003000400
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable


--=20
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

--------------010503020308040003000400--

Re: Problem when fetching data of BIT column.

am 24.11.2010 23:07:07 von Hiroshi Inoue

Hi,

Thanks for the report.
I would commit your patch to cvs.

regards,
Hiroshi Inoue

(2010/11/24 13:26), Taizo ITO wrote:
> Hi alls,
>
> I got a error when trying to fetch data from BIT column.
> The problem is that last 4 bits of data are filled with null.
>
> I created a patch that fixes the bug.
> Please commit the attached patch to trunk.
>
> Regards,
> Taizo ITO


--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc