ResultSetMetaData + CachedResultSet bug - Mailing list pgsql-jdbc

From Sergii Sinelnychenko
Subject ResultSetMetaData + CachedResultSet bug
Date
Msg-id 032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua
Whole thread Raw
Responses Re: ResultSetMetaData + CachedResultSet bug  (Kris Jurka <books@ejurka.com>)
List 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 by date:

Previous
From: Sebastiaan van Erk
Date:
Subject: Re: Limit vs setMaxRows issue
Next
From: Mark Lewis
Date:
Subject: Re: Limit vs setMaxRows issue