pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedbug in ODBC Bind messege for SunOS
2+ messages / 2 participants
[nested] [flat]
* bug in ODBC Bind messege for SunOS
@ 2007-09-10 18:54 Zahid Khan <khanzahid235@yahoo.com>
2007-09-11 00:19 ` Re: bug in ODBC Bind messege for SunOS Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Zahid Khan @ 2007-09-10 18:54 UTC (permalink / raw)
To: pgsql-odbc
Hi ,
Going through the code of psqlODBC i suspect a bug
in bind messege function BuildBindRequest() for
SunOS(64bit).
I found netleng is declared with size_t and the sizeof
size_t is of eight byte on SunOS 64bit whereas PG
protocol expect 4 bytes for legth over the network.
*int* type can be the quick fix -:)
Thanks,
Zahid K.
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: bug in ODBC Bind messege for SunOS
2007-09-10 18:54 bug in ODBC Bind messege for SunOS Zahid Khan <khanzahid235@yahoo.com>
@ 2007-09-11 00:19 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2007-09-11 00:19 UTC (permalink / raw)
To: Zahid Khan <khanzahid235@yahoo.com>; +Cc: pgsql-odbc
Zahid Khan wrote:
> Hi ,
>
> Going through the code of psqlODBC i suspect a bug
> in bind messege function BuildBindRequest() for
> SunOS(64bit).
>
> I found netleng is declared with size_t and the sizeof
> size_t is of eight byte on SunOS 64bit whereas PG
> protocol expect 4 bytes for legth over the network.
Seems you are right.
I would commit the fix tonight.
Thanks.
Hiroshi Inoue
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-09-11 00:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 18:54 bug in ODBC Bind messege for SunOS Zahid Khan <khanzahid235@yahoo.com>
2007-09-11 00:19 ` 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