db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r407658 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java
Date Thu, 18 May 2006 23:18:32 GMT
Author: tomdz
Date: Thu May 18 16:18:31 2006
New Revision: 407658

URL: http://svn.apache.org/viewvc?rev=407658&view=rev
Log:
Reduced number of generated datatype changes by taking the backmapping into account

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java?rev=407658&r1=407657&r2=407658&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java Thu May
18 16:18:31 2006
@@ -348,7 +348,7 @@
     {
         ArrayList changes = new ArrayList();
 
-        if (sourceColumn.getTypeCode() != targetColumn.getTypeCode())
+        if (_platformInfo.getTargetJdbcType(targetColumn.getTypeCode()) != sourceColumn.getTypeCode())
         {
             changes.add(new ColumnDataTypeChange(sourceTable, sourceColumn, targetColumn.getTypeCode()));
         }



Mime
View raw message