db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1169692 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java
Date Mon, 12 Sep 2011 11:13:37 GMT
Author: kahatlen
Date: Mon Sep 12 11:13:37 2011
New Revision: 1169692

URL: http://svn.apache.org/viewvc?rev=1169692&view=rev
Log:
DERBY-5236: Client driver silently truncates strings that exceed 32KB

Third argument in call to greaterThanOrEqualTo() should be DRDA
maintenance version, not the third digit in the client's version number.

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java?rev=1169692&r1=1169691&r2=1169692&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/AppRequester.java Mon Sep 12
11:13:37 2011
@@ -337,7 +337,12 @@ class AppRequester
      * old maximum length, which is 32700 bytes.
      */
     protected boolean supportsLongerLDStrings() {
-        return clientType == DNC_CLIENT && greaterThanOrEqualTo(10, 8, 2);
+        // The fix for DERBY-5236 went into the 10.8 branch after the first
+        // release off that branch. The DRDA maintenance version was bumped
+        // to 1 when the fix went in (the third argument in the call to
+        // greaterThanOrEqualTo() refers to that maintenance version, not to
+        // the third digit of the product's version number).
+        return clientType == DNC_CLIENT && greaterThanOrEqualTo(10, 8, 1);
     }
 
     /**



Mime
View raw message