Thread: bug in ODBC Bind messege for SunOS
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/
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