Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EA27C9F9D31 for ; Mon, 10 Sep 2007 21:26:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 09570-02 for ; Mon, 10 Sep 2007 21:26:34 -0300 (ADT) X-Greylist: delayed 00:07:19.345294 by SQLgrey-1.7.5 Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id B0E949F9D04 for ; Mon, 10 Sep 2007 21:26:33 -0300 (ADT) Received: (qmail 17238 invoked from network); 11 Sep 2007 09:19:09 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 11 Sep 2007 09:19:09 +0900 Message-ID: <46E5DEFA.2060807@tpf.co.jp> Date: Tue, 11 Sep 2007 09:19:06 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Zahid Khan CC: pgsql-odbc@postgresql.org Subject: Re: bug in ODBC Bind messege for SunOS References: <809641.74765.qm@web54507.mail.re2.yahoo.com> In-Reply-To: <809641.74765.qm@web54507.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.511 tagged_above=0 required=5 tests=AWL=0.510, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200709/7 X-Sequence-Number: 9170 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