Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YanYV-0003Zh-G9 for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 15:49:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YanYU-0000gA-4h for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Mar 2015 15:49:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yalwk-0008On-2l for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:06:14 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yalwb-000734-Gl for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 14:06:12 +0000 MIME-Version: 1.0 Subject: BUG #12897: SQLDescribeColumn() and bit columns To: pgsql-bugs@postgresql.org From: smarvin@pobox.com Date: Wed, 25 Mar 2015 14:05:22 +0000 Message-ID: <20150325140522.2562.7220@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs