Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0
-
Repro attached
-
Embedded/Client difference, Regression
Description
The javadoc for PreparedStatement.setCharacterStream does not specify that the stream passed in will be closed, only that it will read to the number of characters specified.
For the embedded driver, the stream is not closed after execution; the client driver, however, will close the stream when the internal stream object EncodedInputStream is garbage collected, which can happen any time after the statement has been executed.
I am not sure this a bug vs. the JDBC specification, but it would be nice to harmonize client and embedded behavior on this.
Attachments
Attachments
Issue Links
- relates to
-
DERBY-6082 Investigate if openOnServer_ field in org.apache.derby.client.am.Statement is still needed.
- Closed