Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1EC1B475E30 for ; Thu, 28 Nov 2002 03:11:37 -0500 (EST) Received: from vip.sina.com (unknown [202.108.35.183]) by postgresql.org (Postfix) with SMTP id D7C15475A9E for ; Thu, 28 Nov 2002 03:11:29 -0500 (EST) Received: (qmail 2804 invoked from network); 28 Nov 2002 08:11:21 -0000 Received: from unknown (HELO zh) (218.108.232.5) by 202.108.35.183 with SMTP; 28 Nov 2002 08:11:21 -0000 From: "Han" To: Hiroshi Inoue Cc: pgsql-odbc@postgresql.org Subject: Re: Problem about Bytea and SQL_C_CHAR X-mailer: Foxmail 4.2 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Thu, 28 Nov 2002 16:11:50 +0800 Message-Id: <20021128081129.D7C15475A9E@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/194 X-Sequence-Number: 2371 Hiroshi Inoue, OK, that crash problem solved. But there are even more datatype conversion= problems. First I prepared an insert statement, bound params all using SQL_C_CHAR an= d SQL_NTS, and execute it. All type of column values were inserted properly= except bytea--it's null in the column. And then I retrived data from the table I just inserted, binding columns w= ith SQL_C_DEFAULT. Most colums returned wrong value. Notice that I use SQL_C_CHAR for insert and SQL_C_DEFAULT for retrive. Please check it. Thanks and regards! > >Maybe I found a cause. Please try the snapshot dll again. >Thanks a lot. > >Hiroshi Inoue > http://w2422.nsk.ne.jp/~inoue/ > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > >http://archives.postgresql.org =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-28