ResultSetMetaData + CachedResultSet bug

Поиск
Список
Период
Сортировка
От Sergii Sinelnychenko
Тема ResultSetMetaData + CachedResultSet bug
Дата
Msg-id 032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua
обсуждение исходный текст
Ответы Re: ResultSetMetaData + CachedResultSet bug  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Hello everybody!

    Today I have found a strange bug in JDBC driver (I used the last version avilable - 8.2dev-503). The problem is
withVARCHAR  
fields - driver returns "-1" on "getPrecision()" call. But class javax.sql.rowset.RowSetMetaDataImpl in its
"setPrecision()"method  
requires values of 0 and more (javadoc sais "precision the total number of decimal digits; must be <code>0</code> or
more"). 
I understand that in case of VARCHAR type we cannot speak about real number of decimal digits - but could just driver
return0  
instead of -1?
    Please advise.

    Thanks in advance for answer.

---
WBR, Sergii Sinelnychenko
Senior Java Developer, Project Manager
e: SSinelnychenko@bossdev.com
w: www.bossdev.com


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

Предыдущее
От: Sebastiaan van Erk
Дата:
Сообщение: Re: Limit vs setMaxRows issue
Следующее
От: Mark Lewis
Дата:
Сообщение: Re: Limit vs setMaxRows issue