commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <>
Subject [sql] Metadata and columns sizes
Date Mon, 29 Nov 2004 11:44:45 GMT
I've got a problem when trying to use commons-sql to delete a schema
created in hsqldb.
For numeric columns, hsqldb does not return any information about the column
size, so
the JdbcModelReader (line 243 in the latest from cvs) affects null to the
local variable
columnSize and pass it to the Column model object (line 341) with the
setSize method.
Unfortunately, the Column#setSize method do not support null values and so
an NPE is thrown.

The problem is that i do not know wether hsqldb or commons-sql is in fault,
and if it is commons-sql, should i modify the Column object so that it
handles null values
or the JdbcModelReader so that the default value for the columnSize variable
is "".

Thanks in advance,

Guillaume Nodet

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message