Issue Type: Bug Bug
Affects Versions: 4.1.8
Assignee: Unassigned
Created: 26/Nov/12 3:06 AM
Description:

Hibernate 4.1.8 uses the FBClob.length() method when reading Clobs from the database, in the current version of Jaybird the method throws a FBDriverNotCapableException which Hibernate can't handle.

Caused by: org.firebirdsql.jdbc.FBDriverNotCapableException: Not yet implemented.
at org.firebirdsql.jdbc.FBClob.length(FBClob.java:69)
at org.hibernate.type.descriptor.java.DataHelper.extractString(DataHelper.java:278)

JDBC does not require this method to be implemented: http://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#length() :
SQLFeatureNotSupportedException - if the JDBC driver does not support this method. FBDriverNotCapableException extends SQLFeatureNotSupportedException (in the Java 6 and 7 version of Jaybird).

Maybe there are other drivers out there that do the same, so maybe it is wise to handle the exception generically

More details: http://tracker.firebirdsql.org/browse/JDBC-270

Environment: Jaybird 2.2.1 Firebird JDBC driver
Project: Hibernate ORM
Priority: Critical Critical
Reporter: Sergey Vasilyev
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira