Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Microsoft SQL Server, JTDS driver
-
Patch Available
-
Unknown
Description
Not all JBDC drivers support "getObject" on the resultset the same way. In particular, the jtds driver returns back a "ClobImpl" type Object when "getObject" is called on some text\varchar(MAX) columns.
The simple solution is to check the column type and if it is a Clob\Blob or other known String type, call "getString" instead.