[ 
https://issues.apache.org/jira/browse/OPENJPA-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792994#action_12792994
 ] 

Milosz Tylenda commented on OPENJPA-1248:
-----------------------------------------

The problem with SQL Server is that an InputStream obtained from 
ResultSet.getBinaryStream can't be used after its result set is closed. OpenJPA 
closes the ResultSet before user has a chance to read from the InputStream.

I am investigating these ideas:
1. Using ResultSet.getBlob.getBinaryStream instead of ResultSet.getBinaryStream.
2. Proxying the ResultSet to defer its closing.


> LOB streaming does not work as expected
> ---------------------------------------
>
>                 Key: OPENJPA-1248
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1248
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 1.1.0, 1.2.0, 1.2.1, 1.3.0, 2.0.0
>         Environment: Oracle, MySQL, PostgreSQL, SQL Server
>            Reporter: Milosz Tylenda
>         Attachments: failures.txt, TestReaderLob_oracle.log
>
>
> TestReaderLob does not pass with any of the databases indicated in the test 
> case: Oracle, MySQL, PostgreSQL, SQL Server. TestInputStreamLob passes only 
> with MySQL and PostgreSQL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to