Incorrect OCTET_LENGTH for column of type interval?

From: Tristan St-Cyr <trst(at)microsoft(dot)com>
To: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Incorrect OCTET_LENGTH for column of type interval?
Date: 2015-06-09 00:47:14
Message-ID: BY2PR0301MB06790CD35FE98BF91A21D547C0BE0@BY2PR0301MB0679.namprd03.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

Would it possible that the PostgreSQL Unicode ODBC Driver 9.03.04.00 returns an incorrect value for SQLColAttribute with SQL_DESC_OCTET_LENGTH when called over a column of type "interval"?

The driver reports the column being of type WVARCHAR when querying for the SQL_DESC_CONCISE_TYPE (which is fine with me). When querying for the SQL_DESC_OCTET_LENGTH, I see a size of 32 being reported. Values retrieved using SQLGetData however can exceed that size.

I'm wondering if there could be a bug in the mapping between the interal interval type and the WVARCHAR that's exposed for ODBC.

Thanks,
Tristan St-Cyr

Browse pgsql-odbc by date

  From Date Subject
Next Message Watermann, Bernd (Bernd) 2015-06-10 14:50:39 Bug in psqlODBC 9.3.4: Wrong SQL state when connection is lost
Previous Message Steve Marvin 2015-05-20 20:26:44 Re: Setting Database Name During Connection