"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