Skip to content

Commit

Permalink
0005088: Duplicate column name error
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 11, 2021
1 parent 8d5aaf1 commit ac2e218
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion symmetric-db/src/main/java/org/jumpmind/db/model/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,19 @@ public static Column[] orderColumns(String[] columnNames, Table table) {
for (int i = 0; i < columnNames.length; i++) {
String name = columnNames[i];
for (Column column : unorderedColumns) {
if (column != null && column.getName().equalsIgnoreCase(name)) {
if (column != null && column.getName().equals(name)) {
orderedColumns[i] = column;
break;
}
}
if (orderedColumns[i] == null) {
for (Column column : unorderedColumns) {
if (column != null && column.getName().equalsIgnoreCase(name)) {
orderedColumns[i] = column;
break;
}
}
}
if (orderedColumns[i] == null && log.isDebugEnabled()) {
log.debug("Could not find column with the name of {} on table {}", name, table.toVerboseString());
}
Expand Down

0 comments on commit ac2e218

Please sign in to comment.