Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1abuBd-0005rg-4Y for pgsql-odbc@arkaria.postgresql.org; Fri, 04 Mar 2016 18:10:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1abuBc-0003JQ-KU for pgsql-odbc@arkaria.postgresql.org; Fri, 04 Mar 2016 18:10:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1abjpt-0000Tg-OS for pgsql-odbc@postgresql.org; Fri, 04 Mar 2016 07:07:41 +0000 Received: from taurus.rz1.hosting-agency.net ([178.63.176.215]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1abjpq-0000XO-JD for pgsql-odbc@postgresql.org; Fri, 04 Mar 2016 07:07:40 +0000 Received: from sunkasten.rz1.hosting-agency.net (ns1.hosting-agency.de [178.63.176.210]) by taurus.rz1.hosting-agency.net (Postfix) with ESMTPS id 554EBDAED9 for ; Fri, 4 Mar 2016 08:07:35 +0100 (CET) Received: from authenticated user ([127.0.0.1]) by sunkasten.rz1.hosting-agency.net (Postfix) with ESMTPSA id 87151219C82D for ; Fri, 4 Mar 2016 08:07:34 +0100 (CET) From: Scott Ferrett Subject: SQLDescribeCol not returning correct information for time fields To: pgsql-odbc@postgresql.org Message-ID: <56D9342E.30801@ferrettconsulting.com> Date: Fri, 4 Mar 2016 18:07:26 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org According to https://msdn.microsoft.com/en-us/library/ms709314%28v=vs.85%29.aspx, SQLDescribeCol should return "The number of digits to the right of the decimal point in the seconds part of the value (fractional seconds). This number cannot be negative." for datetime fields. The 32bit PostgreSQL ODBC Driver(ANSI) version 9.05.01.00 always returns 0 regardless of the precision defined for a time or timestamp fields. Cheers, Scott Ferrett -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc