pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taizo ITO <taizo.ito@hde.co.jp>
To: pgsql-odbc@postgresql.org
Subject: Problem when fetching data of BIT column.
Date: Wed, 24 Nov 2010 13:26:24 +0900
Message-ID: <4CEC93F0.3050405@hde.co.jp> (raw)

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

Attachments:

psqlodbc-mod_length_bit.patch (text/plain, 927B) download diff -uNr psqlodbc-09.00.0200.orig/info.c psqlodbc-09.00.0200/info.c --- psqlodbc-09.00.0200.orig/info.c 2010-10-23 04:54:13.000000000 +0900 +++ psqlodbc-09.00.0200/info.c 2010-11-19 19:15:14.000000000 +0900 @@ -2576,6 +2576,7 @@ case PG_TYPE_TIMESTAMP_NO_TMZONE: case PG_TYPE_TIME: case PG_TYPE_TIME_WITH_TMZONE: + case PG_TYPE_BIT: break; default: mod_length -= 4; diff -uNr psqlodbc-09.00.0200.orig/pgtypes.h psqlodbc-09.00.0200/pgtypes.h --- psqlodbc-09.00.0200.orig/pgtypes.h 2010-08-21 15:29:20.000000000 +0900 +++ psqlodbc-09.00.0200/pgtypes.h 2010-11-19 19:14:39.000000000 +0900 @@ -72,6 +72,7 @@ #define PG_TYPE_INTERVAL 1186 #define PG_TYPE_TIME_WITH_TMZONE 1266 /* since 7.1 */ #define PG_TYPE_TIMESTAMP 1296 /* deprecated since 7.0 */ +#define PG_TYPE_BIT 1560 #define PG_TYPE_NUMERIC 1700 #define PG_TYPE_REFCURSOR 1790 #define PG_TYPE_RECORD 2249

view thread (2+ messages)  latest in thread

Message-ID: <4CEC93F0.3050405@hde.co.jp>
Permalink:  ../4CEC93F0.3050405@hde.co.jp/
Also on:    postgresql.org/message-id/4CEC93F0.3050405@hde.co.jp

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: taizo.ito@hde.co.jp
  Subject: Re: Problem when fetching data of BIT column.
  In-Reply-To: <4CEC93F0.3050405@hde.co.jp>
  References: <4CEC93F0.3050405@hde.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox