|
Daniel John Debrunner made changes - 04/May/05 06:45 AM
Olav Sandstaa made changes - 24/May/05 05:22 PM
Olav Sandstaa made changes - 24/May/05 05:23 PM
Removing out of date test information to clarify the Jira entry.
Kathey Marsden made changes - 02/Jun/05 12:06 AM
Kathey Marsden made changes - 02/Jun/05 12:12 AM
If you are not going to implement this feature, it should throw a SQLException per section 6.2 of the JDBC 3.0 spec (same requirement in JDBC 4 though we are considering adding a new non-transient SQLException as there appears to be a SQLState that we can use... this is under discussion)
Dyre Tjeldvoll made changes - 13/Jun/06 08:30 PM
This patch replaces the existing implementation of setUnicodeStream and getUnicodeStream in the client driver to just throw a SQL exception with SQL state equal to feature not implemented.
The following files are changed: M java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetClient/parameterMapping.out M java/client/org/apache/derby/client/am/PreparedStatement.java M java/client/org/apache/derby/client/am/ResultSet.java The patch is ready for review and commit.
Olav Sandstaa made changes - 12/Jul/06 07:55 PM
Olav Sandstaa made changes - 12/Jul/06 07:55 PM
The patch looks good. I will run some tests and commit it.
The tests ran cleanly. Committed revision 421570. Thanks Olav!
Thanks for reviewing and committing this patch, Knut Anders!
Since this patch removes functionality from the client driver (although probably broken functionality), is this something that needs a comment in the release notes?
Olav Sandstaa made changes - 13/Jul/06 05:05 PM
Verified that the patch is in. Thanks for commiting it, Knut Anders!
Olav Sandstaa made changes - 13/Jul/06 05:42 PM
Yes, I think we should mention this in the release notes. Here's my proposal:
PROBLEM PreparedStatement.setUnicodeStream() and ResultSet.getUnicodeStream() throw SQLException when invoked after upgrading to Apache Derby 10.2. SYMPTOM Calling either of these methods will result in an exception with SQLSTATE 0A000 and message: "Feature not implemented: ..." CAUSE PreparedStatement.setUnicodeStream() and ResultSet.getUnicodeStream() have been deprecated since JDBC 2.0. Derby's implemetation of these methods was broken, and it was decided that the methods should throw a not-implemented exception instead of being fixed. SOLUTION This was an intentional change. No Derby product solution is offered. WORKAROUND Use setCharacterStream() and getCharacterStream() instead of setUnicodeStream() and getUnicodeStream().
Knut Anders Hatlen made changes - 13/Jul/06 06:15 PM
Knut Anders, thanks for the proposal to release notes. This looks very good.
Kristian Waagan made changes - 31/Jul/06 02:03 PM
Kathey Marsden made changes - 14/May/07 04:38 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The report refers to the a test named "conn/blobclob4BLOB.java", but I am unable to locate any test with name. There is a test named "jdbcapi/blobclob4BLOB.java" and initially I thought this was the right test to use, but I can not find that this test is doing any calls to setUnicodeStream/getUnicodeStream.
There is a test called "jdbcapi/parameterMapping.java" that does a lot of calls to setUnicodeStream/getUnicodeStream which are disabled when running with the network client. I suspect this is the right test to use for reproducing this problem.
Since I am new to the Derby code and test harness I would appreciate that someone told me if I am on the wrong track to reproduce this problem.