openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1070993 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Date Tue, 15 Feb 2011 18:14:46 GMT
Author: mikedd
Date: Tue Feb 15 18:14:46 2011
New Revision: 1070993

URL: http://svn.apache.org/viewvc?rev=1070993&view=rev
Log:
OPENJPA_1939: increase index name length for DB2 version 9 and later

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java?rev=1070993&r1=1070992&r2=1070993&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
Tue Feb 15 18:14:46 2011
@@ -343,8 +343,11 @@ public class DB2Dictionary
             supportsLockingWithInnerJoin = true;
             supportsLockingWithOuterJoin = true;
             forUpdateClause = "WITH RR USE AND KEEP UPDATE LOCKS";
-            if (maj >=9)
+            
+            if (maj >=9) { 
+                maxIndexNameLength=128;
                 supportsXMLColumn = true;
+            }
         }
 
         // platform specific settings



Mime
View raw message