Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: [INTERFACES] sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)
Дата
Msg-id 37A69D94.330E098A@trust.ee
обсуждение исходный текст
Ответ на sigh .. another bug in the JDBC driver (ResultSetMetaData.getColumnDisplaySize)  (Jens Glaser <jens@helena.jens.de>)
Ответы [INTERFACES] embedded sql
Список 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 по дате отправления:

Предыдущее
От: sranjan@plasma.ernet.in
Дата:
Сообщение: Installing pgsqlodbc.dll
Следующее
От: nico@clubdelphi.com (Nicolas Aragon)
Дата:
Сообщение: [INTERFACES] embedded sql