openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hthom...@apache.org
Subject svn commit: r1504720 - in /openjpa/branches/2.2.x: ./ openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Thu, 18 Jul 2013 23:30:42 GMT
Author: hthomann
Date: Thu Jul 18 23:30:42 2013
New Revision: 1504720

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

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

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

Modified: openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=1504720&r1=1504719&r2=1504720&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/branches/2.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Thu Jul 18 23:30:42 2013
@@ -3488,8 +3488,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