db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r366014 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java
Date Wed, 04 Jan 2006 23:05:14 GMT
Author: tomdz
Date: Wed Jan  4 15:05:11 2006
New Revision: 366014

URL: http://svn.apache.org/viewcvs?rev=366014&view=rev
Log:
Fixed error in equals for NUMERIC/DECIMAL columns (size was not compared)

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java?rev=366014&r1=366013&r2=366014&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/model/Column.java Wed Jan  4 15:05:11 2006
@@ -499,7 +499,7 @@
             // comparing the size makes only sense for types where it is relevant
             if ((_typeCode == Types.NUMERIC) || (_typeCode == Types.DECIMAL))
             {
-                comparator.append(_scale, other._scale);
+                comparator.append(_size,  other._size);
                 comparator.append(_scale, other._scale);
             }
             else if ((_typeCode == Types.CHAR) || (_typeCode == Types.VARCHAR) ||



Mime
View raw message