Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 530B7475843 for ; Mon, 25 Nov 2002 23:22:25 -0500 (EST) Received: from vip.sina.com (unknown [202.108.35.183]) by postgresql.org (Postfix) with SMTP id 85AC7474E44 for ; Mon, 25 Nov 2002 23:22:18 -0500 (EST) Received: (qmail 59093 invoked from network); 26 Nov 2002 04:22:15 -0000 Received: from unknown (HELO zh) (218.108.232.5) by 202.108.35.183 with SMTP; 26 Nov 2002 04:22:15 -0000 From: "Han" To: pgsql-odbc@postgresql.org Subject: SQL_C_CHAR & SQL_VARBINARY X-mailer: Foxmail 4.2 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2002 12:22:39 +0800 Message-Id: <20021126042218.85AC7474E44@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/138 X-Sequence-Number: 2315 Hi, It seems that convertion between SQL_C_CHAR and SQL_VARBINARY in psqlodbc = is not standard. For example, SQL_C_CHAR('01') should be explaned as hexdec= imal and be converted to SQL_VARBINARY(00000001), but psqlodbc deals it the= same as SQL_CHAR('01')--there are 2 ASCII chars inserted into the databas= e. And vice versa, when retrived form database, SQL_VARBINAY('01') was conv= ered to char string '01', but it should have been it's hex form. If I was right, I hope a fix to it soon :) Thanks!!! =09 =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-26