db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r961895 - /db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java
Date Thu, 08 Jul 2010 19:28:24 GMT
Author: kahatlen
Date: Thu Jul  8 19:28:24 2010
New Revision: 961895

URL: http://svn.apache.org/viewvc?rev=961895&view=rev
Log:
DERBY-4738: correct error prompt for nonpositive length in Blob.setBytesX()

Patch contributed by Yun Lee <yun.lee.bj@gmail.com>.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java?rev=961895&r1=961894&r2=961895&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Blob.java Thu Jul  8 19:28:24
2010
@@ -466,7 +466,7 @@ public class Blob extends Lob implements
         if ( len < 0 ) {
             throw new SqlException(agent_.logWriter_,
                 new ClientMessageId(SQLState.BLOB_NONPOSITIVE_LENGTH),
-                new Integer(length));
+                new Integer(len));
         }
         if (len == 0) {
             return 0;



Mime
View raw message