From: son102yh@yahoo.ca
To: pgsql-bugs@postgresql.org
Subject: BUG #14377: ODBC SQLDescribeCol always returns decimal digit 6
Date: Mon, 17 Oct 2016 19:39:24 +0000
Message-ID: <20161017193924.1413.88883@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14377
Logged by: Son Nguyen
Email address: son102yh@yahoo.ca
PostgreSQL version: 9.5.4
Operating system: Windows
Description:
Hi,
I have the query below, the output data type is SQL_NUMBER with scale of 6,
but the actual decimal value beyond 6
Thanks
Son Nguyen
From ODBC Test tool
select ( ( 1 * 1.0e0 ) /256 )from "T1"
The output value is 0.00781250000000000000,
but SQLDescribeCol returns column size 28, and decimal digit only 6
1) SQLPrepare with the query above
2) SQLDescribeCol
Out: *ColumnName = "?column?", *NameLengthPtr = 8, *DataTypePtr =
SQL_NUMERIC=2, *ColumnSizePtr = 28, *DecimalDigits = 6,
Expected decimalDigits should be 7.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: son102yh@yahoo.ca
Subject: Re: BUG #14377: ODBC SQLDescribeCol always returns decimal digit 6
In-Reply-To: <20161017193924.1413.88883@wrigleys.postgresql.org>
References: <20161017193924.1413.88883@wrigleys.postgresql.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