copyCharacterStream passes initial position 0, instead of 1 this causes the exception below. This is triggered when setClob is called with a reader or a non-Jaybird Clob.
Caused by: org.firebirdsql.jdbc.FBSQLException: You can't start before the beginning of the blob
at org.firebirdsql.jdbc.FBBlob.setBinaryStream(FBBlob.java:511) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.FBClob.setCharacterStream(FBClob.java:285) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.FBClob.copyCharacterStream(FBClob.java:317) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.AbstractPreparedStatement.setClob(AbstractPreparedStatement.java:1094) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
Reproduced when trying to run XWiki with modified hbm files. Clob requires additional test coverage.
Submitted by: @mrotteveel
copyCharacterStream passes initial position 0, instead of 1 this causes the exception below. This is triggered when setClob is called with a reader or a non-Jaybird Clob.
Caused by: org.firebirdsql.jdbc.FBSQLException: You can't start before the beginning of the blob
at org.firebirdsql.jdbc.FBBlob.setBinaryStream(FBBlob.java:511) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.FBClob.setCharacterStream(FBClob.java:285) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.FBClob.copyCharacterStream(FBClob.java:317) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
at org.firebirdsql.jdbc.AbstractPreparedStatement.setClob(AbstractPreparedStatement.java:1094) ~[jaybird-full-2.2.1.jar:2.2.1JDK_1.7 (build: SVNTag=Jaybird_2_2_1 date=201209301312)]
Reproduced when trying to run XWiki with modified hbm files. Clob requires additional test coverage.
Commits: 17ce958 6bd4ab9
The text was updated successfully, but these errors were encountered: