pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1010864 ] CODBCFieldInfo field type (m_nSQLType) is incorrect
Date: Thu,  5 Aug 2010 21:39:14 +0000 (UTC)
Message-ID: <20100805213914.3481810716D0@pgfoundry.org> (raw)

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



Message-ID: <20100805213914.3481810716D0@pgfoundry.org>
Permalink:  ../20100805213914.3481810716D0@pgfoundry.org/
Also on:    postgresql.org/message-id/20100805213914.3481810716D0@pgfoundry.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1010864 ] CODBCFieldInfo field type (m_nSQLType) is incorrect
  In-Reply-To: <20100805213914.3481810716D0@pgfoundry.org>
  References: <20100805213914.3481810716D0@pgfoundry.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox