Skip to content

Commit

Permalink
0005438: Conflict resolver fails if there are no primary keys on the
Browse files Browse the repository at this point in the history
target and it is set to not use primary keys from source
  • Loading branch information
jakobvanmeter committed Sep 6, 2022
1 parent adee487 commit 2754b56
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1029,6 +1029,9 @@ protected Table lookupTableAtTarget(Table sourceTable) {
if (table != null) {
table = table.copyAndFilterColumns(sourceTable.getColumnNames(),
sourceTable.getPrimaryKeyColumnNames(), writerSettings.isUsePrimaryKeysFromSource());
if (table.getPrimaryKeyColumnCount() == 0) {
table = getPlatform(table).makeAllColumnsPrimaryKeys(table);
}
Column[] columns = table.getColumns();
for (Column column : columns) {
if (column != null) {
Expand Down

0 comments on commit 2754b56

Please sign in to comment.