pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem when fetching data of BIT column.
2+ messages / 2 participants
[nested] [flat]
* Problem when fetching data of BIT column.
@ 2010-11-24 04:26 Taizo ITO <taizo.ito@hde.co.jp>
2010-11-24 22:07 ` Re: Problem when fetching data of BIT column. Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Taizo ITO @ 2010-11-24 04:26 UTC (permalink / raw)
To: pgsql-odbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem when fetching data of BIT column.
2010-11-24 04:26 Problem when fetching data of BIT column. Taizo ITO <taizo.ito@hde.co.jp>
@ 2010-11-24 22:07 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2010-11-24 22:07 UTC (permalink / raw)
To: Taizo ITO <taizo.ito@hde.co.jp>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-11-24 22:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-24 04:26 Problem when fetching data of BIT column. Taizo ITO <taizo.ito@hde.co.jp>
2010-11-24 22:07 ` Hiroshi Inoue <inoue@tpf.co.jp>
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