You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by to...@apache.org on 2006/05/19 01:18:32 UTC
svn commit: r407658 -
/db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ModelComparator.java
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()));
}