Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize) - Mailing list pgsql-interfaces

From Hannu Krosing
Subject Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)
Date
Msg-id 37A69D94.330E098A@trust.ee
Whole thread Raw
In response to sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)  (Jens Glaser <jens@helena.jens.de>)
Responses [INTERFACES] embedded sql  (nico@clubdelphi.com (Nicolas Aragon))
List pgsql-interfaces
"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


pgsql-interfaces by date:

Previous
From: sranjan@plasma.ernet.in
Date:
Subject: Installing pgsqlodbc.dll
Next
From: nico@clubdelphi.com (Nicolas Aragon)
Date:
Subject: [INTERFACES] embedded sql