You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2008/07/11 16:37:11 UTC
svn commit: r675967 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
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();