Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3C237632743 for ; Thu, 5 Aug 2010 18:39:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 85574-04 for ; Thu, 5 Aug 2010 21:39:15 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id E2535632DD4 for ; Thu, 5 Aug 2010 18:39:15 -0300 (ADT) Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by pgfoundry.org (Postfix) with ESMTP id 8BEF610716D1; Thu, 5 Aug 2010 21:39:14 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 35768-03; Thu, 5 Aug 2010 21:39:14 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 3481810716D0; Thu, 5 Aug 2010 21:39:14 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1010864 ] CODBCFieldInfo field type (m_nSQLType) is incorrect Content-type: text/plain; charset=UTF-8 Message-Id: <20100805213914.3481810716D0@pgfoundry.org> Date: Thu, 5 Aug 2010 21:39:14 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-10 required=5 tests=BAYES_40=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/3 X-Sequence-Number: 10380 Bugs item #1010864, was opened at 2010-08-05 14:39 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010864&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Mark Richardson (markmapo) Assigned to: Nobody (None) Summary: CODBCFieldInfo field type (m_nSQLType) is incorrect Initial Comment: Using the CRecordset.GetODBCFieldInfo() function to retrieve a CODBCFieldInfo about the field give incorrect values for the types. I only checked a couple types agains an access database... db_table_type postgres_value access_value int 4 5 double 6 8 What are the values supposed to be? Far as I can tell they are the values which come from "atldbcli.h" & "oledb.h" - but these don't match with the access values either (poor documentation on what these values are supposed to be from MS about ODBC - suprise?no) Also, the CRecordSet.GetTableName() is unset (so is the access database value). I don't like the way that a table name is assigned to an entire CRecordset, as each field MAY be from a different table. I prefer the way postgres has a table name for each field - but we're stuck using the ODBC interface. Thanks guys for all the great work! Mark ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010864&group_id=1000125