db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r675967 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
Date Fri, 11 Jul 2008 14:37:11 GMT
Author: kmarsden
Date: Fri Jul 11 07:37:11 2008
New Revision: 675967

URL: http://svn.apache.org/viewvc?rev=675967&view=rev
Log:
DERBY-3774 jdbc4/ClobTest fails on Zos with AssertionFailedError: Streams differ at index
0 expected:<200> but was:<72>

Test compared getAsciiStream results with String.getBytes() without specifying "US-ASCII"
as the encoding for getBytes.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java?rev=675967&r1=675966&r2=675967&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
Fri Jul 11 07:37:11 2008
@@ -558,7 +558,7 @@
          //that is obtained from the Blob after
          //the update.
          ByteArrayInputStream str_is = new ByteArrayInputStream
-                 (str.getBytes());
+                 (str.getBytes("US-ASCII"));
          
          //create the empty Clob.
          Clob clob = getConnection().createClob();



Mime
View raw message