diff --git a/src/main/java/org/citydb/sqlbuilder/schema/Column.java b/src/main/java/org/citydb/sqlbuilder/schema/Column.java index 0755d68..c260dcc 100644 --- a/src/main/java/org/citydb/sqlbuilder/schema/Column.java +++ b/src/main/java/org/citydb/sqlbuilder/schema/Column.java @@ -84,7 +84,8 @@ public boolean equals(Object obj) { if (obj instanceof Column) { Column other = (Column)obj; return table.equals(other.table) && - name.toUpperCase().equals(other.name.toUpperCase()); + name.toUpperCase().equals(other.name.toUpperCase()) && + ((asName == null && other.asName == null) || (asName != null && asName.equalsIgnoreCase(other.asName))); } return false;