You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2010/03/23 21:03:21 UTC

svn commit: r926758 - in /openjpa/branches/2.0.x: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java openjpa-project/CHANGES.txt openjpa-project/RELEASE-NOTES.html

Author: dwoods
Date: Tue Mar 23 20:03:21 2010
New Revision: 926758

URL: http://svn.apache.org/viewvc?rev=926758&view=rev
Log:
OPENJPA-1596 Index name too long for DB2 zOS

Modified:
    openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
    openjpa/branches/2.0.x/openjpa-project/CHANGES.txt
    openjpa/branches/2.0.x/openjpa-project/RELEASE-NOTES.html

Modified: openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java?rev=926758&r1=926757&r2=926758&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java (original)
+++ openjpa/branches/2.0.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java Tue Mar 23 20:03:21 2010
@@ -912,7 +912,8 @@ public class DB2Dictionary
             // build the index for the sequence tables
             // the index name will be the fully qualified table name + _IDX
             Table tab = schema.getTable(table);
-            Index idx = tab.addIndex(DBIdentifier.append(tab.getFullIdentifier(), "IDX"));
+            DBIdentifier idxName = DBIdentifier.append(tab.getFullIdentifier(), "IDX");
+            Index idx = tab.addIndex(getValidIndexName(idxName, tab));
             idx.setUnique(true);
             idx.addColumn(pkColumn);
         }

Modified: openjpa/branches/2.0.x/openjpa-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-project/CHANGES.txt?rev=926758&r1=926757&r2=926758&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-project/CHANGES.txt (original)
+++ openjpa/branches/2.0.x/openjpa-project/CHANGES.txt Tue Mar 23 20:03:21 2010
@@ -216,6 +216,7 @@ Bug
     * [OPENJPA-1581] - getCache() should throw IllegalStateException if the EMF has been closed. 
     * [OPENJPA-1583] - Update by query fails on entities using Timestamp as Version field
     * [OPENJPA-1588] - modify 925451 revision for setProperty processing for enums
+    * [OPENJPA-1596] - Index name too long for DB2 zOS
 
 Improvement
 -----------

Modified: openjpa/branches/2.0.x/openjpa-project/RELEASE-NOTES.html
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-project/RELEASE-NOTES.html?rev=926758&r1=926757&r2=926758&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-project/RELEASE-NOTES.html (original)
+++ openjpa/branches/2.0.x/openjpa-project/RELEASE-NOTES.html Tue Mar 23 20:03:21 2010
@@ -326,6 +326,8 @@ in each release of OpenJPA.</P>
 </li>
 <li>[<a href='https://issues.apache.org/jira/browse/OPENJPA-1588'>OPENJPA-1588</a>] -         modify 925451 revision for setProperty processing for enums
 </li>
+<li>[<a href='https://issues.apache.org/jira/browse/OPENJPA-1596'>OPENJPA-1596</a>] -         Index name too long for DB2 zOS
+</li>
 </ul>
     
 <h4>Improvement</h4>