Skip to content

Commit

Permalink
0005456: Oracle LONG type must be last column updated
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 10, 2022
1 parent 85b0dde commit 8ac318f
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -213,6 +213,7 @@ public Column[] orderColumnsForTable(Table table) {
for (int i = 0; i < pks.length; i++) {
orderedColumns.add(pks[i]);
}
List<Column> endingColumns = new ArrayList<Column>();
for (int i = 0; i < cols.length; i++) {
boolean syncKey = false;
for (int j = 0; j < pks.length; j++) {
Expand All @@ -221,10 +222,15 @@ public Column[] orderColumnsForTable(Table table) {
break;
}
}
if (!syncKey) {
if (cols[i].getJdbcTypeName().equalsIgnoreCase("LONG")) {
endingColumns.add(cols[i]);
} else if (!syncKey) {
orderedColumns.add(cols[i]);
}
}
for (Column column : endingColumns) {
orderedColumns.add(column);
}
Column[] result = orderedColumns.toArray(new Column[orderedColumns.size()]);
return filterExcludedAndIncludedColumns(result);
} else {
Expand Down

0 comments on commit 8ac318f

Please sign in to comment.