Subject | Re: TEST org.firebirdsql.jdbc.TestFBResultSetMetaData FAILED |
---|---|
Author | Roman Rokytskyy <rrokytskyy@yahoo.co.uk> |
Post date | 2002-12-17T21:43:28Z |
> I found an error in a ResultSetMetaData method, and post thisI fixed it. But that's not driver bug, but a database one. For system
> test. It is in the getColumnDisplaySize and Roman is trying to
> analyze it now.
tables RDB$CHARACTER_LENGTH column of RDB$FIELDS table always
contains null, that is defaulted to 0 in rs.getInt() method. I fixed
it by checking value for null and replacing it with estimation based
on RDB$FIELD_LENGTH and RDB$CHARACTER_SET_ID values.
However RDB$FIELDS has incorrect data for field length (it is 31) and
character set (it is UNICODE_FSS), which gives us display size 10,
and not 31 (display size is a maximum width assuming that each
character uses maximum possible number of bytes).
Anyway this is fixed now. I will report this issue to firebird-devel
list too.
Best regards,
Roman Rokytskyy