forwarded from core bugs list
------- Forwarded Message
Date: Wed, 25 Mar 2015 14:05:22 +0000
From: smarvin@pobox.com
To: pgsql-bugs@postgresql.org
Subject: [BUGS] BUG #12897: SQLDescribeColumn() and bit columns
The following bug has been logged on the website:
Bug reference: 12897
Logged by: Steve Marvin
Email address: smarvin@pobox.com
PostgreSQL version: 9.4.1
Operating system: Windows 8.1
Description:
when using statement 'select btest from public.tblname limit 1',
SQLDescribeColumn(1,...) returns nSQLType of 12 (SQL_VARCHAR) and length of
255 on columns of type 'bit' instead of -7(SQL_BIT) and length of 1.
select * from information_schema.columns using tablename,columnname,catalog
shows
the data_type is 'bit' and all other column information is correct.
ODBC Driver is PostgreSQL ANSI 9.03.04.00 10/26/2014.
Tested both x86 and x64 drivers.
------- End of Forwarded Message