Subject Re: TEST org.firebirdsql.jdbc.TestFBResultSetMetaData FAILED
Author Roman Rokytskyy <rrokytskyy@yahoo.co.uk>
> I found an error in a ResultSetMetaData method, and post this
> test. It is in the getColumnDisplaySize and Roman is trying to
> analyze it now.

I fixed it. But that's not driver bug, but a database one. For system
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