Menu

#39 Exception when DB table struct differs from model ***218

open
nobody
None
5
2005-08-14
2005-08-14
No

Currently, when reading values from a table, a
ClassCastException may occur if the modeled type of a
column differs from the actual type in the database.

We could fix it in two ways:
1) Remain 'strict' and throw a better exception (and
possibly validate the structures when the application
loads)
2) Be more forgiving regarding mismatches ( e.g. allow
reading numbers from textual fields as long as the
content is a representation of a number).
Databases/JDBC may support this (I am not sure about
it).

================================

This bug has been transferred from Tersus' internal bug
tracking system.
The original bug number has been appended to the end
of the bug's summary.

Discussion


Log in to post a comment.