db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r426570 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java
Date Fri, 28 Jul 2006 15:40:43 GMT
Author: rhillegas
Date: Fri Jul 28 08:40:42 2006
New Revision: 426570

URL: http://svn.apache.org/viewvc?rev=426570&view=rev
Log:
DERBY-1510: Commit derby-1510-1a.diff, fixing an infinite loop.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java?rev=426570&r1=426569&r2=426570&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/types/SQLBinary.java Fri Jul 28
08:40:42 2006
@@ -402,7 +402,7 @@
 				break;
 			off += len;
 
-			int available = in.available();
+			int available = Math.max(1, in.available());
 			int extraSpace = available - (tmpData.length - off);
 			if (extraSpace > 0)
 			{



Mime
View raw message