db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r508713 - in /db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2: Db2v8Builder.java Db2v8Platform.java
Date Sat, 17 Feb 2007 05:15:13 GMT
Author: tomdz
Date: Fri Feb 16 21:15:12 2007
New Revision: 508713

URL: http://svn.apache.org/viewvc?view=rev&rev=508713
Log:
Fix for the DB2 platform

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Builder.java
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Platform.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Builder.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Builder.java?view=diff&rev=508713&r1=508712&r2=508713
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Builder.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Builder.java Fri Feb
16 21:15:12 2007
@@ -37,14 +37,4 @@
     {
         super(platform);
     }
-
-    /**
-     * {@inheritDoc}
-     */
-    public int getMaxConstraintNameLength()
-    {
-        // In non-delimited identifier mode we can only use 18 characters apparently
-        return getPlatform().isDelimitedIdentifierModeOn() ? super.getMaxConstraintNameLength()
: 18;
-    }
-
 }

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Platform.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Platform.java?view=diff&rev=508713&r1=508712&r2=508713
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Platform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/db2/Db2v8Platform.java Fri Feb
16 21:15:12 2007
@@ -43,6 +43,7 @@
         // the number of bytes
         getPlatformInfo().setMaxIdentifierLength(128);
         getPlatformInfo().setMaxColumnNameLength(30);
+        getPlatformInfo().setMaxConstraintNameLength(18);
         getPlatformInfo().setMaxForeignKeyNameLength(18);
         setSqlBuilder(new Db2v8Builder(this));
     }



Mime
View raw message