Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AE966476489 for ; Thu, 28 Nov 2002 22:12:54 -0500 (EST) Received: from vip.sina.com (unknown [202.108.35.178]) by postgresql.org (Postfix) with SMTP id E4A2B476199 for ; Thu, 28 Nov 2002 22:12:47 -0500 (EST) Received: (qmail 9340 invoked from network); 29 Nov 2002 03:12:41 -0000 Received: from unknown (HELO zh) (218.108.232.5) by 202.108.35.178 with SMTP; 29 Nov 2002 03:12:41 -0000 From: "Han" To: pgsql-odbc@postgresql.org Subject: out length err with SQL_TINYINT X-mailer: Foxmail 4.2 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Nov 2002 11:13:17 +0800 Message-Id: <20021129031247.E4A2B476199@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/208 X-Sequence-Number: 2385 pgsql-odbc When retrive SQL_TINYINT columns from table using SQL_C_DEFAULT, the out l= ength(the last argument of SQLBindCol) is incorrect. For example, the value= retrived is 0(it's correct), but the length returned is 2 -- and in fact i= t's 1. Regards, =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1 =20=09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1Han =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhouhanok@vip.sina.com =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12002-11-29