Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 96869475925 for ; Thu, 21 Nov 2002 01:52:44 -0500 (EST) Received: from vip.sina.com (unknown [202.108.35.183]) by postgresql.org (Postfix) with SMTP id 3CE824758FE for ; Thu, 21 Nov 2002 01:52:38 -0500 (EST) Received: (qmail 59826 invoked from network); 21 Nov 2002 06:52:30 -0000 Received: from unknown (HELO zh) (218.108.232.5) by 202.108.35.183 with SMTP; 21 Nov 2002 06:52:30 -0000 From: "Han" To: pgsql-odbc@postgresql.org Subject: Problems about ODBC3 datetime X-mailer: Foxmail 4.2 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Thu, 21 Nov 2002 14:52:37 +0800 Message-Id: <20021121065238.3CE824758FE@postgresql.org> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/108 X-Sequence-Number: 2285 Hi, Firstly, I encountered a problem when using SQL_DATE: when I use SQLGetTyp= eInfo(...,SQL_DATE); the API returns no record. I debuged the psqlodbc driver and found that the= value of the parameter DataType was 91. So I think that the value was chan= ged by the odbc30 Driver Manager. But why don't the psqlodbc add the SQL_TY= PE_DATE and other ODBC30 data types support in the array sqlTypes[](in pgty= pes.c)? Secondly, I wander why returning SQL_DATETIME in function pgtype_to_sqldes= ctype for the three types--SQL_TYPE_DATE, SQL_TYPE_TIME, SQL_TYPE_TIMESTAMP? 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-21