Skip to content

Firebird clobs incompatible with mybatis 3.4.x #972

@sinforosoft

Description

@sinforosoft

MyBatis version

3.4.x
I have checked that MyBatis version 3.3.x works without any problem.

Database vendor and version

Firebird 2.5.7 with Jaybird 2.2.12 JDBC driver.
Other Firebird/Jaybird combinations have been tested, all of them with the same result.

Steps to reproduce

Any select on a firebird table including a clob (blob sub_type text) field, will throw an ResultMapException, due to unsupported java.sql.Clob.length method.

Expected result

As java.sql.Clob.length is not a required JDBC method, mybatis should fallback to other (required) methods when length() is not supported by the JDBC driver. See http://tracker.firebirdsql.org/browse/JDBC-270

Actual result

org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'DIRECCION' from result set. Cause: org.firebirdsql.jdbc.FBDriverNotCapableException: Not yet implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions