db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r724560 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java
Date Tue, 09 Dec 2008 00:08:37 GMT
Author: bpendleton
Date: Mon Dec  8 16:08:37 2008
New Revision: 724560

URL: http://svn.apache.org/viewvc?rev=724560&view=rev
Log:
DERBY-961: Error 22001 can include XX-RESOLVE-XX

Updated a comment in a test program to remove a stale reference to the
XX-RESOLVE-XX string.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java?rev=724560&r1=724559&r2=724560&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/concateTests.java
Mon Dec  8 16:08:37 2008
@@ -888,7 +888,7 @@
 			System.arraycopy(bData, 0, bConcatenatedData, bData1.length, bData.length);
 			//Prior to fix for Derby-124, the ? was getting bound to VARCHAR FOR BIT DATA with max
length of 32670
 			//And when ps.setBytes() set 32700 bytes into the ? parameter, at ps.execute() time, you
got following exception
-			//ERROR 22001: A truncation error was encountered trying to shrink VARCHAR () FOR BIT
DATA 'XX-RESOLVE-XX' to length 32672.
+			//ERROR 22001: A truncation error was encountered trying to shrink VARCHAR () FOR BIT
DATA '(Binary data value not displayed)' to length 32672.
 			//As a fix for this, if one of the operands of concatenation is BLOB, then the ? parameter
would be bound to BLOB as well      
 			System.out.println("  preapre statement with blob||?");
 			ps = conn.prepareStatement("insert into bt values (cast (x'1010' as BLOB) || ?)");



Mime
View raw message