db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r555949 - /db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java
Date Fri, 13 Jul 2007 11:54:08 GMT
Author: kahatlen
Date: Fri Jul 13 04:54:07 2007
New Revision: 555949

URL: http://svn.apache.org/viewvc?view=rev&rev=555949
Log:
DERBY-2923: Incorrect reading of nullable Blob/Clob columns during
soft upgrade with client/server

Fix contributed by Øystein Grøvlen.

Modified:
    db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java

Modified: db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java?view=diff&rev=555949&r1=555948&r2=555949
==============================================================================
--- db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java (original)
+++ db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/DRDAResultSet.java Fri
Jul 13 04:54:07 2007
@@ -322,9 +322,10 @@
 			return false;
 		
 
-		int colnum = ((Integer) rsExtPositions.get(index)).intValue();
+		// Column number is starting on 1
+		int colnum = ((Integer) rsExtPositions.get(index)).intValue() + 1;
 		
-		if (FdocaConstants.isNullable((getRsDRDATypes())[colnum]))
+		if (FdocaConstants.isNullable(getRsDRDAType(colnum)))
 			return true;
 		else 
 			return false;



Mime
View raw message