Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6ABC5475921 for ; Wed, 25 Dec 2002 02:19:22 -0500 (EST) Received: from vip.sina.com (unknown [202.108.35.178]) by postgresql.org (Postfix) with SMTP id 048FD4758E1 for ; Wed, 25 Dec 2002 02:19:19 -0500 (EST) Received: (qmail 3489 invoked from network); 25 Dec 2002 07:19:15 -0000 Received: from unknown (HELO zh) (218.108.243.218) by 202.108.35.178 with SMTP; 25 Dec 2002 07:19:15 -0000 From: "Han" To: pgsql-odbc@postgresql.org Subject: Crash when calling SQLSetDescField X-mailer: Foxmail 4.2 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Dec 2002 15:21:19 +0800 Message-Id: <20021225071919.048FD4758E1@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/107 X-Sequence-Number: 2496 Hi, =09 Following steps lead to crash! 1. call SQLAllocHandle to allocate a statement handle 2. call SQLGetStmtAttr(...,SQL_ATTR_IMP_PARAM_DESC,...) to get the IPD of = the stmt handle 3. call SQLSetDescField(...,1,SQL_DESC_PARAMETER_TYPE,...) The 3rd step leads to crash. But SQLSetDescField(...,1,SQL_DESC_CONCISE_TYPE,...) will not crash, and f= ollowing call to set SQL_DESC_PARAMETER_TYPE will not crash either. =09 =A1=A1=A1=A1Regards,=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-12-25