pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: son102yh@yahoo.ca
To: pgsql-bugs@postgresql.org
Subject: BUG #14375: ODBC driver SQLDescibeCol always returns the column size 28
Date: Mon, 17 Oct 2016 18:39:57 +0000
Message-ID: <20161017183957.1413.77656@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:      14375
Logged by:          Son Nguyen
Email address:      son102yh@yahoo.ca
PostgreSQL version: 9.5.4
Operating system:   Windows
Description:        


I have the following queries, SQLDescribeCol always returns columnSize of 28
for any literal greater than 30 digits.

select 
123456789012345678901234567890,
1234567890123456789012345678901234567890
from T1

From ODBC Test tool,

1) SQLPrepare on the above query

2) SQLDescribe on 1, the output is
*ColumnName = "?column?", *NameLengthPtr = 8, *DataTypePtr = SQL_NUMERIC=2,
*ColumnSizePtr = 28, *DecimalDigits = 6,

SQLDescribe on 2, the output is
*ColumnName = "?column?", *NameLengthPtr = 8, *DataTypePtr = SQL_NUMERIC=2,
*ColumnSizePtr = 28, *DecimalDigits = 6, *NullablePtr = SQL_NULLABLE=1

While PostgreSQL 9.3 returns correct columnsize depending the number of
digits in the literal

Thanks

Son Nguyen


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20161017183957.1413.77656@wrigleys.postgresql.org>
Permalink:  ../20161017183957.1413.77656@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161017183957.1413.77656@wrigleys.postgresql.org

 · 

reply

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 #14375: ODBC driver SQLDescibeCol always returns the column size 28
  In-Reply-To: <20161017183957.1413.77656@wrigleys.postgresql.org>
  References: <20161017183957.1413.77656@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