Menu

#136 Missing implementation for JDBC4 method JtdsPreparedStatement.setBinaryStream(int, InputStream, long).

v1.3
open
nobody
None
1
2017-06-21
2015-07-06
No

This patch fixes an interoperability issue with Hibernate ORM.

When creating a Blob from an InputStream, Hibernate calls method:

JtdsPreparedStatement.setBinaryStream(int, InputStream, long)

In the JTDS driver, this method is not implemented, but an alternative is:

JtdsPreparedStatement.setBinaryStream(int, InputStream, int)

This patch adds an implementation for setBinaryStream(int, InputStream, long) which calls setBinaryStream(int, InputStream, int).

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2016-06-21

    please implement same to the setCharacterStream too...

     
  • Anonymous

    Anonymous - 2017-06-21

    This should include a check for not exceeding Integer.MAX_VALUE first, but +1 for such an easy enhancement, as long as JDBC 4.0 is not fully supported.

     

Anonymous
Anonymous

Add attachments
Cancel