openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hthom...@apache.org
Subject svn commit: r1504721 - in /openjpa/trunk: ./ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Thu, 18 Jul 2013 23:32:11 GMT
Author: hthomann
Date: Thu Jul 18 23:32:10 2013
New Revision: 1504721

URL: http://svn.apache.org/r1504721
Log:
OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name.

Modified:
    openjpa/trunk/   (props changed)
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Propchange: openjpa/trunk/
------------------------------------------------------------------------------
  Merged /openjpa/branches/2.0.x:r1504611
  Merged /openjpa/branches/2.2.1.x:r1504719

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1504721&r1=1504720&r2=1504721&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Thu Jul 18 23:32:10 2013
@@ -3483,8 +3483,10 @@ public class DBDictionary
 
         StringBuilder buf = new StringBuilder();
         buf.append(create ? "CREATE" : "ALTER").append(" SEQUENCE ");
-        String seqName = checkNameLength(getFullName(seq), maxTableNameLength, 
-                "long-seq-name");
+        
+        String seqName = checkNameLength(toDBName(seq.getFullIdentifier().getUnqualifiedName()),

+            maxTableNameLength, "long-seq-name");
+
         buf.append(seqName);
         if (create && seq.getInitialValue() != 0)
             buf.append(" START WITH ").append(seq.getInitialValue());



Mime
View raw message