You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Guillaume Nodet <gu...@deliasystems.com> on 2004/11/29 12:44:45 UTC

[sql] Metadata and columns sizes

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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org