Skip to content

Commit e68abdc

Browse files
abrackxsuryaaki2
andauthored
DAT-19082: Fix issue with losing changed datatype attributes when one datatype is an int and the other is not (#6621)
[DAT-19082] Fix issue with losing changed datatypes when one datatype is an int and the other is not. Co-authored-by: suryaaki2 <[email protected]>
1 parent 40ef1af commit e68abdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

liquibase-standard/src/main/java/liquibase/diff/compare/core/ColumnComparator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public ObjectDifferences findDifferences(DatabaseObject databaseObject1, Databas
8787
ObjectDifferences differences = chain.findDifferences(databaseObject1, databaseObject2, accordingTo, compareControl, exclude);
8888

8989
DataType type1 = ((Column) databaseObject1).getType();
90-
DataType type2 = ((Column) databaseObject1).getType();
90+
DataType type2 = ((Column) databaseObject2).getType();
9191

9292
differences.compare("name", databaseObject1, databaseObject2, new ObjectDifferences.DatabaseObjectNameCompareFunction(Column.class, accordingTo));
9393
compareTypes(databaseObject1, databaseObject2, accordingTo, type1, type2, differences);

0 commit comments

Comments
 (0)