From: Hannu Krosing <hannu@trust.ee>
To: Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
Cc: jens@jens.de
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)
Date: Tue, 03 Aug 1999 10:43:16 +0300
Message-ID: <37A69D94.330E098A@trust.ee> (raw)
References: <Pine.LNX.4.05.9908021919100.1185-100000@helena.jens.de>
<19990802131200.A15411@wallace.ece.rice.edu>
"Ross J. Reedstrom" wrote:
>
> On Mon, Aug 02, 1999 at 07:23:07PM +0000, Jens Glaser wrote:
> > Hi,
> >
> > here's just another annoying bug in the JDBC driver:
> >
> > ResultSetMetaData.getColumnDisplaySize() returns the length of the
> > *column label*, but it is expected to return the max width of the column!
> >
>
> Hmm, the Zope Python interface suffers from the same problem (and the
> same work around): lack of column width info, substituting the column
> label length.
I'm not sure that this info is available through libpq but it appeared
at
least to protocol level in about 6.4 for variable length fields (it has
always been there for fixed width of course). At least ODBC drivers do
use it.
-------
Hannu
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: hannu@trust.ee, reedstrm@wallace.ece.rice.edu, jens@jens.de
Subject: Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)
In-Reply-To: <37A69D94.330E098A@trust.ee>
* 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