Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?

Поиск
Список
Период
Сортировка
От DGPickett
Тема Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Дата
Msg-id be6ffbdc-6190-4f2b-8e2e-b45fa9e5a596@r27g2000vbp.googlegroups.com
обсуждение исходный текст
Ответ на ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?  (DGPickett <DGPickett@aol.com>)
Ответы Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
I feel it runs contrary to the purpose of JDBC to make clients have
postgres-specific code for this response.  The common JDBC
speccification does not support returning int max (or anything else)
for "I don't know."

It seems unreasonable that this implementation cannot deal with these
trivial cases.  I am not sure whether the fault lies with the JDBC
implementation or the underlying RDBMS server, that we cannot
determine that "X" is 1 byte wide, or a||b is (width of a) + (width of
b) bytes wide.  Perhaps the requirement to support result metadata did
not percolate down into the server or TCP interface code far enough.
Can someone illuminate us on this?

Best,

David

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?