Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copyCharacterStream passes initial position 0, instead of 1 [JDBC281] #327

Closed
firebird-automations opened this issue Nov 3, 2012 · 4 comments

Comments

@firebird-automations
Copy link

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

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

Fix Version: Jaybird 2.2.2 [ 10480 ]

Fix Version: Jaybird 2.3 [ 10440 ]

@firebird-automations
Copy link
Author

Commented by: @mrotteveel

Fix committed to trunk and 2.2 branch.

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment